@@ -52,8 +52,8 @@ |
||
52 | 52 | public function test_plugin_backlinks_isloaded() { |
53 | 53 | global $plugin_controller; |
54 | 54 | $this->assertTrue( |
55 | - in_array('backlinks', $plugin_controller->getList()), |
|
56 | - "backlinks plugin is loaded" |
|
57 | - ); |
|
55 | + in_array('backlinks', $plugin_controller->getList()), |
|
56 | + "backlinks plugin is loaded" |
|
57 | + ); |
|
58 | 58 | } |
59 | 59 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | public function testIndex() { |
73 | 73 | $query = array('ross'); |
74 | 74 | $this->assertEquals( |
75 | - array('ross' => array( |
|
75 | + array('ross' => array( |
|
76 | 76 | 'link' => '3', |
77 | 77 | 'bob_ross_says' => '1', |
78 | 78 | 'backlinks_syntax' => '2', |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | 'include:link' => '3', |
83 | 83 | 'exclude:link' => '3' |
84 | 84 | )), |
85 | - idx_lookup($query) |
|
85 | + idx_lookup($query) |
|
86 | 86 | ); |
87 | 87 | } |
88 | 88 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | strpos($response->getContent(), 'A link to Bob Ross') !== false, |
95 | 95 | 'A link to Bob Ross was not in the output' |
96 | 96 | ); |
97 | - } |
|
97 | + } |
|
98 | 98 | |
99 | 99 | public function testStoryPage() { |
100 | 100 | $request = new TestRequest(); |
@@ -119,18 +119,18 @@ discard block |
||
119 | 119 | //look for id="plugin__backlinks" |
120 | 120 | $this->assertEquals(1, pq('#plugin__backlinks', $doc)->length, |
121 | 121 | 'There should be one backlinks element' |
122 | - ); |
|
122 | + ); |
|
123 | 123 | |
124 | 124 | $wikilinks = pq('#plugin__backlinks ul li', $doc); |
125 | 125 | dbglog($wikilinks->text(), 'found backlinks'); |
126 | 126 | $this->assertEquals(4, $wikilinks->contents()->length, |
127 | 127 | 'There should be 4 backlinks' |
128 | - ); |
|
128 | + ); |
|
129 | 129 | |
130 | 130 | $lastlink = pq('a:last',$wikilinks); |
131 | 131 | dbglog($lastlink->text(),"last backlink"); |
132 | 132 | $this->assertEquals($lastlink->text(),'A link to Bob Ross', |
133 | 133 | 'The last backlink should be a link to Bob Ross' |
134 | - ); |
|
134 | + ); |
|
135 | 135 | } |
136 | 136 | } |