diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-25 15:12:49 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-01 08:20:17 +0200 |
commit | 2fae696d35d221a9fb25b90b90b32c35c81fdd45 (patch) | |
tree | 85e00c12d8a0e507d46c11ec4cba67fc31aae67e /tests/Core/Controller | |
parent | 61a6adff143b405dd5e0f2fe3785286692126f0c (diff) | |
download | nextcloud-server-2fae696d35d221a9fb25b90b90b32c35c81fdd45.tar.gz nextcloud-server-2fae696d35d221a9fb25b90b90b32c35c81fdd45.zip |
Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/Core/Controller')
-rw-r--r-- | tests/Core/Controller/OCSControllerTest.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/Core/Controller/OCSControllerTest.php b/tests/Core/Controller/OCSControllerTest.php index 9d0a3dae118..aa2c780f82e 100644 --- a/tests/Core/Controller/OCSControllerTest.php +++ b/tests/Core/Controller/OCSControllerTest.php @@ -169,7 +169,7 @@ class OCSControllerTest extends TestCase { $this->equalTo('wrongpass') )->willReturn(false); - $expected = new DataResponse(null, 102); + $expected = new DataResponse([], 102); $expected->throttle(); $this->assertEquals($expected, $this->controller->personCheck('user', 'wrongpass')); } @@ -181,7 +181,7 @@ class OCSControllerTest extends TestCase { $this->equalTo('wrongpass') )->willReturn(false); - $expected = new DataResponse(null, 101); + $expected = new DataResponse([], 101); $this->assertEquals($expected, $this->controller->personCheck('', '')); } @@ -192,7 +192,7 @@ class OCSControllerTest extends TestCase { ->with('NotExistingUser') ->willReturn(null); - $expected = new DataResponse('User not found', 404); + $expected = new DataResponse(['User not found'], 404); $this->assertEquals($expected, $this->controller->getIdentityProof('NotExistingUser')); } |