diff options
author | Björn Schießle <bjoern@schiessle.org> | 2017-01-25 15:44:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-25 15:44:36 +0100 |
commit | ffe2543a573d7731bc2e89ad158a61d50906dfb0 (patch) | |
tree | 7a02c7df6354cb585456902d363e413915cf4248 /tests | |
parent | 5873a0a7d4e8fa442cc7796f133e39b6f998bbf1 (diff) | |
parent | 5086335643b6181284ee50f57b95525002842992 (diff) | |
download | nextcloud-server-ffe2543a573d7731bc2e89ad158a61d50906dfb0.tar.gz nextcloud-server-ffe2543a573d7731bc2e89ad158a61d50906dfb0.zip |
Merge pull request #3232 from nextcloud/add-profile-data-to-provisioning-api
add data from the users profile to the provisioning api
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Core/Controller/OCSControllerTest.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/Core/Controller/OCSControllerTest.php b/tests/Core/Controller/OCSControllerTest.php index 6c47521786f..7241df9317c 100644 --- a/tests/Core/Controller/OCSControllerTest.php +++ b/tests/Core/Controller/OCSControllerTest.php @@ -116,24 +116,6 @@ class OCSControllerTest extends TestCase { $this->assertEquals($expected, $this->controller->getCapabilities()); } - public function testGetCurrentUser() { - $user = $this->createMock(IUser::class); - $user->method('getUID')->willReturn('uid'); - $user->method('getDisplayName')->willReturn('displayName'); - $user->method('getEMailAddress')->willReturn('e@mail.com'); - - - $this->userSession->method('getUser') - ->willReturn($user); - - $expected = new DataResponse([ - 'id' => 'uid', - 'display-name' => 'displayName', - 'email' => 'e@mail.com', - ]); - $this->assertEquals($expected, $this->controller->getCurrentUser()); - } - public function testPersonCheckValid() { $this->request->method('getRemoteAddress') ->willReturn('1.2.3.4'); |