aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-06-02 20:03:25 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-02 20:03:25 +0200
commita1e6187406289b6b54f8044ba1f209979454204b (patch)
treeb1976ef7970a3124745a3452239d781e1de429b2 /tests/Wallabag/ApiBundle
parent044079967b18f9e02b1d2bd838b1b79a5b047548 (diff)
downloadwallabag-a1e6187406289b6b54f8044ba1f209979454204b.tar.gz
wallabag-a1e6187406289b6b54f8044ba1f209979454204b.tar.zst
wallabag-a1e6187406289b6b54f8044ba1f209979454204b.zip
Return 201 on user creation
Diffstat (limited to 'tests/Wallabag/ApiBundle')
-rw-r--r--tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php b/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php
index c1095da8..5735bc58 100644
--- a/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php
+++ b/tests/Wallabag/ApiBundle/Controller/UserRestControllerTest.php
@@ -52,7 +52,7 @@ class UserRestControllerTest extends WallabagApiTestCase
52 'email' => 'wallabag@google.com', 52 'email' => 'wallabag@google.com',
53 ]); 53 ]);
54 54
55 $this->assertEquals(200, $this->client->getResponse()->getStatusCode()); 55 $this->assertEquals(201, $this->client->getResponse()->getStatusCode());
56 56
57 $content = json_decode($this->client->getResponse()->getContent(), true); 57 $content = json_decode($this->client->getResponse()->getContent(), true);
58 58
@@ -81,7 +81,7 @@ class UserRestControllerTest extends WallabagApiTestCase
81 'email' => 'wallabag@google.com', 81 'email' => 'wallabag@google.com',
82 ]); 82 ]);
83 83
84 $this->assertEquals(200, $client->getResponse()->getStatusCode()); 84 $this->assertEquals(201, $client->getResponse()->getStatusCode());
85 85
86 $content = json_decode($client->getResponse()->getContent(), true); 86 $content = json_decode($client->getResponse()->getContent(), true);
87 87