@@ -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); |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | //print "wikilink[0]:\n"; |
81 | 81 | //print_r(pq($wikilink->contents()[0], $doc)); |
82 | 82 | $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
83 | - 'The last backlink should be a link to Bob Ross'); |
|
83 | + 'The last backlink should be a link to Bob Ross'); |
|
84 | 84 | } |
85 | 85 | |
86 | 86 | public function testLinksPage() { |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | strpos($response->getContent(), 'A link to Bob Ross') !== false, |
94 | 94 | 'A link to Bob Ross was not in the output' |
95 | 95 | ); |
96 | - } |
|
96 | + } |
|
97 | 97 | |
98 | 98 | public function testBacklinks() { |
99 | 99 | $request = new TestRequest(); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | //print "wikilink[0]:\n"; |
117 | 117 | //print_r(pq($wikilink->contents()[0], $doc)); |
118 | 118 | $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
119 | - 'The last backlink should be a link to Bob Ross'); |
|
119 | + 'The last backlink should be a link to Bob Ross'); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | public function testInclude() { |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | $wikilink = pq('.idx .li .wikilink1', $doc); |
138 | 138 | $this->assertEquals(1, $wikilink->length, 'There should be 1 backlink'); |
139 | 139 | $this->assertEquals($wikilink->contents()[0],'An included link to Bob Ross', |
140 | - 'There should be a link to "An included link to Bob Ross"'); |
|
140 | + 'There should be a link to "An included link to Bob Ross"'); |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | public function testExclude() { |
@@ -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 = true; |
42 | - foreach($data as $val) { |
|
42 | + foreach ($data as $val) { |
|
43 | 43 | idx_addPage($val['id'], $verbose, $force); |
44 | 44 | } |
45 | 45 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | $this->assertEquals(4, $wikilink->length, 'There should be 4 backlinks'); |
80 | 80 | //print "wikilink[0]:\n"; |
81 | 81 | //print_r(pq($wikilink->contents()[0], $doc)); |
82 | - $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
|
82 | + $this->assertEquals($wikilink->contents()[3], 'A link to Bob Ross', |
|
83 | 83 | 'The last backlink should be a link to Bob Ross'); |
84 | 84 | } |
85 | 85 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $this->assertEquals(4, $wikilink->length, 'There should be 4 backlinks'); |
116 | 116 | //print "wikilink[0]:\n"; |
117 | 117 | //print_r(pq($wikilink->contents()[0], $doc)); |
118 | - $this->assertEquals($wikilink->contents()[3],'A link to Bob Ross', |
|
118 | + $this->assertEquals($wikilink->contents()[3], 'A link to Bob Ross', |
|
119 | 119 | 'The last backlink should be a link to Bob Ross'); |
120 | 120 | } |
121 | 121 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | |
137 | 137 | $wikilink = pq('.idx .li .wikilink1', $doc); |
138 | 138 | $this->assertEquals(1, $wikilink->length, 'There should be 1 backlink'); |
139 | - $this->assertEquals($wikilink->contents()[0],'An included link to Bob Ross', |
|
139 | + $this->assertEquals($wikilink->contents()[0], 'An included link to Bob Ross', |
|
140 | 140 | 'There should be a link to "An included link to Bob Ross"'); |
141 | 141 | } |
142 | 142 |