aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-08 14:25:44 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-08 14:25:44 +0200
commita8d3fe50df52ec486add5691a3b67fe5205a032e (patch)
tree77b9464d3417658eca7150875ef0ad0a26f63f05 /tests/Wallabag/ApiBundle
parenteb570e49c8e3ba12638fac600bb5527191c2aaa2 (diff)
downloadwallabag-a8d3fe50df52ec486add5691a3b67fe5205a032e.tar.gz
wallabag-a8d3fe50df52ec486add5691a3b67fe5205a032e.tar.zst
wallabag-a8d3fe50df52ec486add5691a3b67fe5205a032e.zip
Add ability to name the client
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php3
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