diff options
author | Joas Schilling <coding@schilljs.com> | 2016-11-02 15:16:14 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-18 12:10:51 +0100 |
commit | b2d9c20aac35e92e7a7b6838e02c7170991ef352 (patch) | |
tree | 06ec1da4c8fc98cf7dba15f357ca52e444b4ab98 /tests/Settings | |
parent | 922f51e9014d8331e9a593911de152ab20bd4811 (diff) | |
download | nextcloud-server-b2d9c20aac35e92e7a7b6838e02c7170991ef352.tar.gz nextcloud-server-b2d9c20aac35e92e7a7b6838e02c7170991ef352.zip |
Fix unit tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'tests/Settings')
-rw-r--r-- | tests/Settings/Controller/AuthSettingsControllerTest.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/Settings/Controller/AuthSettingsControllerTest.php b/tests/Settings/Controller/AuthSettingsControllerTest.php index 782c9f644e0..7fd985f29de 100644 --- a/tests/Settings/Controller/AuthSettingsControllerTest.php +++ b/tests/Settings/Controller/AuthSettingsControllerTest.php @@ -153,7 +153,9 @@ class AuthSettingsControllerTest extends TestCase { 'deviceToken' => ['dummy' => 'dummy', 'canDelete' => true], 'loginName' => 'User13', ]; - $this->assertEquals($expected, $this->controller->create($name)); + $response = $this->controller->create($name); + $this->assertInstanceOf(JSONResponse::class, $response); + $this->assertEquals($expected, $response->getData()); } public function testCreateSessionNotAvailable() { |