Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-01-24 17:45:55 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2017-01-25 13:20:35 +0300
commit5086335643b6181284ee50f57b95525002842992 (patch)
tree92eb5ecb8726f51253a6e02a54a18bb2ec359890 /tests/Core
parentfee42647fb06b30cf35e2b21e2e8b5c8ef72bcc8 (diff)
unify endpoints form core and the the provisioning api
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'tests/Core')
-rw-r--r--tests/Core/Controller/OCSControllerTest.php18
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');