diff options
author | Robin Appelman <robin@icewind.nl> | 2016-10-31 14:01:31 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:24:29 +0100 |
commit | bb65d3b03d247d8bdde797af4acb963fe296595d (patch) | |
tree | ab13143962944a3cfe035406fd6333a2b20de686 /tests | |
parent | c5df58ec69af0f8ee48543df66f61e3090bdfb17 (diff) | |
download | nextcloud-server-bb65d3b03d247d8bdde797af4acb963fe296595d.tar.gz nextcloud-server-bb65d3b03d247d8bdde797af4acb963fe296595d.zip |
update tests
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Settings/Controller/AuthSettingsControllerTest.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Settings/Controller/AuthSettingsControllerTest.php b/tests/Settings/Controller/AuthSettingsControllerTest.php index 9cb49e4eb3f..f3ba2dd9167 100644 --- a/tests/Settings/Controller/AuthSettingsControllerTest.php +++ b/tests/Settings/Controller/AuthSettingsControllerTest.php @@ -98,6 +98,7 @@ class AuthSettingsControllerTest extends TestCase { 'type' => null, 'canDelete' => false, 'current' => true, + 'scope' => ['filesystem' => true] ], [ 'id' => 200, @@ -105,6 +106,7 @@ class AuthSettingsControllerTest extends TestCase { 'lastActivity' => null, 'type' => null, 'canDelete' => true, + 'scope' => ['filesystem' => true] ] ], $this->controller->index()); } @@ -141,9 +143,13 @@ class AuthSettingsControllerTest extends TestCase { ->with($newToken, $this->uid, 'User13', $password, $name, IToken::PERMANENT_TOKEN) ->will($this->returnValue($deviceToken)); + $deviceToken->expects($this->once()) + ->method('jsonSerialize') + ->will($this->returnValue(['dummy' => 'dummy', 'canDelete' => true])); + $expected = [ 'token' => $newToken, - 'deviceToken' => $deviceToken, + 'deviceToken' => ['dummy' => 'dummy', 'canDelete' => true], 'loginName' => 'User13', ]; $this->assertEquals($expected, $this->controller->create($name)); |