@@ -21,48 +21,48 @@ discard block |
||
21 | 21 | * @group plugins |
22 | 22 | */ |
23 | 23 | class syntax_plugin_yalist_test extends DokuWikiTest { |
24 | - protected $pluginsEnabled = array('yalist'); |
|
24 | + protected $pluginsEnabled = array('yalist'); |
|
25 | 25 | |
26 | 26 | /** |
27 | - * copy data and add pages to the index. |
|
28 | - */ |
|
29 | - public static function setUpBeforeClass() { |
|
30 | - parent::setUpBeforeClass(); |
|
31 | - global $conf; |
|
32 | - $conf['allowdebug'] = 1; |
|
33 | - TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/'); |
|
34 | - dbglog("\nset up class syntax_plugin_geotag_test"); |
|
35 | - } |
|
36 | - function setUp() { |
|
37 | - parent::setUp(); |
|
38 | - global $conf; |
|
39 | - $conf['allowdebug'] = 1; |
|
40 | - $conf['cachetime'] = -1; |
|
41 | - $data = array(); |
|
42 | - search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
|
43 | - $verbose = false; |
|
44 | - $force = false; |
|
45 | - foreach ($data as $val) { |
|
46 | - idx_addPage($val['id'], $verbose, $force); |
|
47 | - } |
|
48 | - if ($conf['allowdebug']) { |
|
49 | - touch(DOKU_TMP_DATA . 'cache/debug.log'); |
|
50 | - } |
|
51 | - } |
|
52 | - public function tearDown() { |
|
53 | - parent::tearDown(); |
|
54 | - global $conf; |
|
55 | - // try to get the debug log after running the test, print and clear |
|
56 | - if ($conf['allowdebug']) { |
|
57 | - print "\n"; |
|
58 | - readfile(DOKU_TMP_DATA . 'cache/debug.log'); |
|
59 | - unlink(DOKU_TMP_DATA . 'cache/debug.log'); |
|
60 | - } |
|
61 | - } |
|
27 | + * copy data and add pages to the index. |
|
28 | + */ |
|
29 | + public static function setUpBeforeClass() { |
|
30 | + parent::setUpBeforeClass(); |
|
31 | + global $conf; |
|
32 | + $conf['allowdebug'] = 1; |
|
33 | + TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/'); |
|
34 | + dbglog("\nset up class syntax_plugin_geotag_test"); |
|
35 | + } |
|
36 | + function setUp() { |
|
37 | + parent::setUp(); |
|
38 | + global $conf; |
|
39 | + $conf['allowdebug'] = 1; |
|
40 | + $conf['cachetime'] = -1; |
|
41 | + $data = array(); |
|
42 | + search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
|
43 | + $verbose = false; |
|
44 | + $force = false; |
|
45 | + foreach ($data as $val) { |
|
46 | + idx_addPage($val['id'], $verbose, $force); |
|
47 | + } |
|
48 | + if ($conf['allowdebug']) { |
|
49 | + touch(DOKU_TMP_DATA . 'cache/debug.log'); |
|
50 | + } |
|
51 | + } |
|
52 | + public function tearDown() { |
|
53 | + parent::tearDown(); |
|
54 | + global $conf; |
|
55 | + // try to get the debug log after running the test, print and clear |
|
56 | + if ($conf['allowdebug']) { |
|
57 | + print "\n"; |
|
58 | + readfile(DOKU_TMP_DATA . 'cache/debug.log'); |
|
59 | + unlink(DOKU_TMP_DATA . 'cache/debug.log'); |
|
60 | + } |
|
61 | + } |
|
62 | 62 | |
63 | - public function test_geotag() { |
|
64 | - $request = new TestRequest(); |
|
65 | - $response = $request->get(array('id'=>'example'), '/doku.php'); |
|
63 | + public function test_geotag() { |
|
64 | + $request = new TestRequest(); |
|
65 | + $response = $request->get(array('id'=>'example'), '/doku.php'); |
|
66 | 66 | //file_get_contents("example.html"); |
67 | 67 | |
68 | 68 | //$handle=fopen('/tmp/data.html', 'w'); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | //close($handle); |
71 | 71 | |
72 | 72 | //print_r($response);\ |
73 | - $this->assertTrue(strpos($response->getContent(), |
|
73 | + $this->assertTrue(strpos($response->getContent(), |
|
74 | 74 | '<h1 class="sectionedit1" id="yalist_example">yalist example</h1> |
75 | 75 | <div class="level1"> |
76 | 76 | <ol> |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | <pre class="code">.. If you try, the result will be rendered oddly.</pre> |
185 | 185 | |
186 | 186 | </div>') !== false, |
187 | - 'expected html snippet was not in the output' |
|
188 | - ); |
|
189 | - } |
|
187 | + 'expected html snippet was not in the output' |
|
188 | + ); |
|
189 | + } |
|
190 | 190 | } |