Skip to content
Snippets Groups Projects
  1. Sep 20, 2010
    • Adrian Lang's avatar
      Remove odd .htaccess · e383b004
      Adrian Lang authored
      Neither I nor Andi has any idea what this file is for and why it explicitly //grants// permission and why its documentation is wrong.
      e383b004
  2. Aug 31, 2010
  3. Jul 01, 2010
  4. Jun 09, 2010
  5. Apr 04, 2010
  6. Mar 30, 2010
    • Michael Klier's avatar
      added support for plugin unittests · 08d7babf
      Michael Klier authored
      	This patch adds support to include plugin tests in the
      	DokuWiki testsuite. Plugin tests are located in a dedicated
      	directory _test/within a plugin directory. The naming
      	convention of the test files follows the one used in
      	DokuWikis testsuite.
      
      		<plugin>/_test/*.test.php 	-> single test
      		<plugin>/_test/*.group.php  -> group test
      
      	The plugin tests are accessible via the web interface
      	of the test suite and via the cli interface. It is recommend
      	to bundle plugin test in a plugin group test. The webinterface
      	also allows to run all plugin tests at once.
      
      	Test files must include:
      
      		<dokuwiki>/_test/lib/unittest.php
      
      	Example Test:
      
      	require_once(DOKU_INC.'_test/lib/unittest.php');
      	class plugin_test extends Doku_UnitTestCase {
      		function test() {
      			$this->assertEqual(1,1);
      		}
      	}
      
      	Example Group Test:
      
      	require_once(DOKU_INC.'_test/lib/unittest.php');
      	class plugin_group_test extends Doku_GroupTest {
      		function group_test() {
      			$dir = dirname(__FILE__).'/';
      			$this->GroupTest('plugin_grouptest');
      			$this->addTestFile($dir . 'plugin.test1.php');
      			$this->addTestFile($dir . 'plugin.test2.php');
      			$this->addTestFile($dir . 'plugin.test3.php');
      		}
      	}
      
      	At the moment unittest.php contains only two
      	meta classes so plugins tests don't have to inherit
      	from the simpletest classes.
      
      	This patch should be treated as intermediate step to
      	allow for plugin tests. The testsuite wasn't designed
      	to include plugin tests. It should probably be refactored
      	at a later point.
      08d7babf
  7. Mar 24, 2010
    • YoBoY's avatar
      Limiting use of readdir in the idx_indexLengths function (v2). · 22952965
      YoBoY authored
      Each searches on the wiki use this function. Scanning the index directory eachtime is time consuming with a constant series of disk access.
      Switching a normal search to use file_exists 1 or more times, and not readdir all the directory.
      Switching a wildcard search to use a lengths.idx file containing all the word lengths used in the wiki, file generated if a new configuration parameter $conf[readdircache] is not 0 and fixed to a time in second. Creation of a new function idx_listIndexLengths to do this part.
      22952965
  8. Mar 23, 2010
  9. Mar 02, 2010
  10. Feb 28, 2010
  11. Feb 04, 2010
  12. Feb 01, 2010
  13. Jan 29, 2010
  14. Dec 01, 2009
  15. Nov 05, 2009
  16. Nov 03, 2009
  17. Oct 22, 2009
    • Adrian Lang's avatar
      Make Doku_Form constructor more flexible · e351c80d
      Adrian Lang authored
      The Doku_Form constructor used to take up to four arguments setting specific
      parameters of the resulting form HTML element. Instead, a generic array is
      passed to the constructor specifying HTML parameters.
      
      darcs-hash:20091022120138-e4919-3a42baf8c12b15e6df20e1f28152a992e347859d.gz
      e351c80d
  18. Oct 04, 2009
  19. May 15, 2009
  20. May 14, 2009
  21. Apr 19, 2009
  22. Mar 08, 2009
  23. Mar 07, 2009
  24. Feb 05, 2009
  25. Feb 03, 2009
    • Andreas Gohr's avatar
      Some more Unit Tests · 23024b97
      Andreas Gohr authored
      Ignore-this: 75cdd558fc40a114961d2fca76e0bcdd
      
      darcs-hash:20090203191311-7ad00-bd6b96193f188afb5f26b6ca781dd5ea9eb8f0ef.gz
      23024b97
  26. Jan 25, 2009
    • Andreas Gohr's avatar
      fixed multiple unit tests. (1 failing) · c0ddfaa5
      Andreas Gohr authored
      Ignore-this: 261098274bce329f446fc8768c25b9e5
      
      Most failing tests were just out of date, because certain behavior was
      changed.
      
      There is one test failing for parsing italic tests. This can probably not
      be fixed without larger changes at the parser to catch runaway lines at
      the paragraph end. FS#1574
      
      darcs-hash:20090125221855-7ad00-968655d609945aae764c3124fb906ce086025df4.gz
      c0ddfaa5
    • Andreas Gohr's avatar
      added missing unit test to repository · 30506cef
      Andreas Gohr authored
      Ignore-this: d1c6f55bfb7edcdb40c6b69a219d8291
      
      darcs-hash:20090125144648-7ad00-94e0d4a6b153f193841317851cb3d6e8f2744cb0.gz
      30506cef
  27. Oct 11, 2008
  28. Oct 07, 2008
Loading