@@ -27,7 +27,7 @@ |
||
27 | 27 | * Simple test to make sure the plugin.info.txt is in correct format |
28 | 28 | */ |
29 | 29 | public function test_plugininfo() { |
30 | - $file = __DIR__ . '/../plugin.info.txt'; |
|
30 | + $file = __DIR__.'/../plugin.info.txt'; |
|
31 | 31 | $this->assertFileExists($file); |
32 | 32 | |
33 | 33 | $info = confToHash($file); |
@@ -28,18 +28,18 @@ discard block |
||
28 | 28 | /** |
29 | 29 | * copy data and add pages to the index. |
30 | 30 | */ |
31 | - public static function setUpBeforeClass(){ |
|
31 | + public static function setUpBeforeClass() { |
|
32 | 32 | parent::setUpBeforeClass(); |
33 | 33 | global $conf; |
34 | 34 | |
35 | - TestUtils::rcopy(TMP_DIR, dirname(__FILE__) . '/data/'); |
|
35 | + TestUtils::rcopy(TMP_DIR, dirname(__FILE__).'/data/'); |
|
36 | 36 | |
37 | 37 | $data = array(); |
38 | 38 | search($data, $conf['datadir'], 'search_allpages', array('skipacl' => true)); |
39 | 39 | |
40 | 40 | $verbose = false; |
41 | 41 | $force = false; |
42 | - foreach($data as $val) { |
|
42 | + foreach ($data as $val) { |
|
43 | 43 | idx_addPage($val['id'], $verbose, $force); |
44 | 44 | } |
45 | 45 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $this->assertEquals(4, $wikilink->length, 'There should be 4 backlink'); |
104 | 104 | //print "wikilink[0]:\n"; |
105 | 105 | //print_r(pq($wikilink->contents()[0], $doc)); |
106 | - $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
|
106 | + $this->assertEquals($wikilink->contents()[3], 'A link to Bob Ross', |
|
107 | 107 | 'There should be a link to Bob Ross'); |
108 | 108 | } |
109 | 109 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | $wikilink = pq('.idx .li .wikilink1', $doc); |
126 | 126 | $this->assertEquals(1, $wikilink->length, 'There should be 1 backlink'); |
127 | - $this->assertEquals($wikilink->contents()[0],'An included link to Bob Ross', |
|
127 | + $this->assertEquals($wikilink->contents()[0], 'An included link to Bob Ross', |
|
128 | 128 | 'There should be a link to "An included link to Bob Ross"'); |
129 | 129 | } |
130 | 130 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | strpos($response->getContent(), 'A link to Bob Ross') !== false, |
82 | 82 | 'A link to Bob Ross was not in the output' |
83 | 83 | ); |
84 | - } |
|
84 | + } |
|
85 | 85 | |
86 | 86 | public function testBacklinks() { |
87 | 87 | $request = new TestRequest(); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | //print "wikilink[0]:\n"; |
105 | 105 | //print_r(pq($wikilink->contents()[0], $doc)); |
106 | 106 | $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
107 | - 'The last backlink should be a link to Bob Ross'); |
|
107 | + 'The last backlink should be a link to Bob Ross'); |
|
108 | 108 | } |
109 | 109 | |
110 | 110 | public function testInclude() { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $wikilink = pq('.idx .li .wikilink1', $doc); |
126 | 126 | $this->assertEquals(1, $wikilink->length, 'There should be 1 backlink'); |
127 | 127 | $this->assertEquals($wikilink->contents()[0],'An included link to Bob Ross', |
128 | - 'There should be a link to "An included link to Bob Ross"'); |
|
128 | + 'There should be a link to "An included link to Bob Ross"'); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | public function testExclude() { |