diff options
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r-- | tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php index 9f01a976..4e65f130 100644 --- a/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php +++ b/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php | |||
@@ -85,6 +85,7 @@ class UserRestControllerTest extends WallabagApiTestCase | |||
85 | 'username' => 'google', | 85 | 'username' => 'google', |
86 | 'password' => 'googlegoogle', | 86 | 'password' => 'googlegoogle', |
87 | 'email' => 'wallabag@google.com', | 87 | 'email' => 'wallabag@google.com', |
88 | 'client_name' => 'My client name !!', | ||
88 | ]); | 89 | ]); |
89 | 90 | ||
90 | $this->assertEquals(201, $client->getResponse()->getStatusCode()); | 91 | $this->assertEquals(201, $client->getResponse()->getStatusCode()); |
@@ -104,7 +105,7 @@ class UserRestControllerTest extends WallabagApiTestCase | |||
104 | $this->assertArrayHasKey('client_secret', $content['default_client']); | 105 | $this->assertArrayHasKey('client_secret', $content['default_client']); |
105 | $this->assertArrayHasKey('client_id', $content['default_client']); | 106 | $this->assertArrayHasKey('client_id', $content['default_client']); |
106 | 107 | ||
107 | $this->assertEquals('Default client', $content['default_client']['name']); | 108 | $this->assertEquals('My client name !!', $content['default_client']['name']); |
108 | 109 | ||
109 | $this->assertEquals('application/json', $client->getResponse()->headers->get('Content-Type')); | 110 | $this->assertEquals('application/json', $client->getResponse()->headers->get('Content-Type')); |
110 | 111 | ||