aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php')
-rw-r--r--src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
index b36ae7c6..86c8de1e 100644
--- a/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
+++ b/src/Wallabag/ApiBundle/Tests/Controller/WallabagRestControllerTest.php
@@ -9,7 +9,7 @@ class WallabagRestControllerTest extends WebTestCase
9 protected static $salt; 9 protected static $salt;
10 10
11 /** 11 /**
12 * Grab the salt once and store it to be available for all tests 12 * Grab the salt once and store it to be available for all tests.
13 */ 13 */
14 public static function setUpBeforeClass() 14 public static function setUpBeforeClass()
15 { 15 {
@@ -24,7 +24,7 @@ class WallabagRestControllerTest extends WebTestCase
24 } 24 }
25 25
26 /** 26 /**
27 * Generate HTTP headers for authenticate user on API 27 * Generate HTTP headers for authenticate user on API.
28 * 28 *
29 * @param string $username 29 * @param string $username
30 * @param string $password 30 * @param string $password
@@ -327,7 +327,7 @@ class WallabagRestControllerTest extends WebTestCase
327 $content = json_decode($client->getResponse()->getContent(), true); 327 $content = json_decode($client->getResponse()->getContent(), true);
328 328
329 $this->assertArrayHasKey('tags', $content); 329 $this->assertArrayHasKey('tags', $content);
330 $this->assertEquals($nbTags+3, count($content['tags'])); 330 $this->assertEquals($nbTags + 3, count($content['tags']));
331 331
332 $entryDB = $client->getContainer() 332 $entryDB = $client->getContainer()
333 ->get('doctrine.orm.entity_manager') 333 ->get('doctrine.orm.entity_manager')
@@ -369,7 +369,7 @@ class WallabagRestControllerTest extends WebTestCase
369 $content = json_decode($client->getResponse()->getContent(), true); 369 $content = json_decode($client->getResponse()->getContent(), true);
370 370
371 $this->assertArrayHasKey('tags', $content); 371 $this->assertArrayHasKey('tags', $content);
372 $this->assertEquals($nbTags-1, count($content['tags'])); 372 $this->assertEquals($nbTags - 1, count($content['tags']));
373 } 373 }
374 374
375 public function testGetUserTags() 375 public function testGetUserTags()