Completed
Pull Request — master (#16)
by Mark
02:11
created
_test/syntax.test.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -21,54 +21,54 @@
 block discarded – undo
21 21
  * @group plugins
22 22
  */
23 23
 class syntax_plugin_geotag_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
 		
67 67
 		
68
-		$this->assertTrue(
69
-			strpos($response->getContent(), 
70
-			'-- TODO --') !== false,
71
-			'expected html snippet was not in the output'
72
-		);
73
-	}
68
+        $this->assertTrue(
69
+            strpos($response->getContent(), 
70
+            '-- TODO --') !== false,
71
+            'expected html snippet was not in the output'
72
+        );
73
+    }
74 74
 }
Please login to merge, or discard this patch.