Browse code

Merge pull request #463 from DannyvdSluijs/master

Added @covers annotations.

Klaus Silveira authored on 23/05/2014 17:54:02
Showing 1 changed files
... ...
@@ -129,6 +129,9 @@ class InterfaceTest extends WebTestCase
129 129
         return $app;
130 130
     }
131 131
 
132
+    /**
133
+     * @covers GitList\Controller\MainController::connect
134
+     */
132 135
     public function testInitialPage()
133 136
     {
134 137
         $client = $this->createClient();
... ...
@@ -160,6 +163,9 @@ class InterfaceTest extends WebTestCase
160 160
         $this->assertCount(1, $crawler->filter('div.repository-body:contains("This is a NESTED test repo!")'));
161 161
     }
162 162
 
163
+    /**
164
+     * @covers GitList\Controller\TreeController::connect
165
+     */
163 166
     public function testRepositoryPage()
164 167
     {
165 168
         $client = $this->createClient();
... ...
@@ -190,6 +196,9 @@ class InterfaceTest extends WebTestCase
190 190
         $this->assertEquals('master', $crawler->filter('.dropdown-menu li')->eq(1)->text());
191 191
     }
192 192
 
193
+    /**
194
+     * @covers GitList\Controller\BlobController::connect
195
+     */
193 196
     public function testBlobPage()
194 197
     {
195 198
         $client = $this->createClient();
... ...
@@ -206,6 +215,9 @@ class InterfaceTest extends WebTestCase
206 206
                 $crawler->filter('.source-header .btn-group a')->eq(2)->attr('href'));
207 207
     }
208 208
 
209
+    /**
210
+     * @covers GitList\Controller\BlobController::connect
211
+     */
209 212
     public function testRawPage()
210 213
     {
211 214
         $client = $this->createClient();
... ...
@@ -215,6 +227,9 @@ class InterfaceTest extends WebTestCase
215 215
         $this->assertEquals("<?php\necho 'Hello World'; // This is a test", $client->getResponse()->getContent());
216 216
     }
217 217
 
218
+    /**
219
+     * @covers GitList\Controller\CommitController::connect
220
+     */
218 221
     public function testBlamePage()
219 222
     {
220 223
         $client = $this->createClient();
... ...
@@ -232,6 +247,9 @@ class InterfaceTest extends WebTestCase
232 232
                 $crawler->filter('.blame-view .commit')->eq(0)->filter('a')->attr('href'));
233 233
     }
234 234
 
235
+    /**
236
+     * @covers GitList\Controller\CommitController::connect
237
+     */
235 238
     public function testHistoryPage()
236 239
     {
237 240
         $client = $this->createClient();
... ...
@@ -249,6 +267,9 @@ class InterfaceTest extends WebTestCase
249 249
         $this->assertEquals('First commit', $crawler->filter('.table tbody tr td h4')->eq(0)->text());
250 250
     }
251 251
 
252
+    /**
253
+     * @covers GitList\Controller\CommitController::connect
254
+     */
252 255
     public function testCommitsPage()
253 256
     {
254 257
         $client = $this->createClient();
... ...
@@ -262,6 +283,9 @@ class InterfaceTest extends WebTestCase
262 262
         $this->assertEquals('First commit', $crawler->filter('.table tbody tr td h4')->eq(0)->text());
263 263
     }
264 264
 
265
+    /**
266
+     * @covers GitList\Controller\MainController::connect
267
+     */
265 268
     public function testStatsPage()
266 269
     {
267 270
         $client = $this->createClient();
... ...
@@ -274,6 +298,9 @@ class InterfaceTest extends WebTestCase
274 274
         $this->assertRegexp('/Luke Skywalker: 1 commits/', $crawler->filter('.table tbody')->eq(0)->text());
275 275
     }
276 276
 
277
+    /**
278
+     * @covers GitList\Controller\MainController::connect
279
+     */
277 280
     public function testRssPage()
278 281
     {
279 282
         $client = $this->createClient();
... ...
@@ -286,6 +313,9 @@ class InterfaceTest extends WebTestCase
286 286
         $this->assertRegexp('/Initial commit/', $client->getResponse()->getContent());
287 287
     }
288 288
 
289
+    /**
290
+     * @covers GitList\Controller\TreeController::connect
291
+     */
289 292
     public function testNestedRepoPage()
290 293
     {
291 294
         $client = $this->createClient();
... ...
@@ -297,6 +327,9 @@ class InterfaceTest extends WebTestCase
297 297
         $this->assertRegexp('/NESTED TEST REPO README/', $client->getResponse()->getContent());
298 298
     }
299 299
 
300
+    /**
301
+     * @covers GitList\Controller\TreeController::connect
302
+     */
300 303
     public function testDevelopRepo()
301 304
     {
302 305
         $client = $this->createClient();
... ...
@@ -305,6 +338,9 @@ class InterfaceTest extends WebTestCase
305 305
         $this->assertTrue($client->getResponse()->isOk());
306 306
     }
307 307
 
308
+    /**
309
+     * @covers GitList\Controller\TreeController::connect
310
+     */
308 311
     public function testNestedRepoBranch()
309 312
     {
310 313
         $client = $this->createClient();