summaryrefslogtreecommitdiffstats
path: root/tests/Settings
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-09 14:10:20 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2018-03-09 14:10:20 +0100
commit7fc85bbf784b6798e431d49d3936bcc2c7b6c8b0 (patch)
treeb39a1735cf6d3dbab2c7a64591bda6eedc2fd6f7 /tests/Settings
parentd9d33d14e77ed218b095e17398ae6f53b077939c (diff)
downloadnextcloud-server-7fc85bbf784b6798e431d49d3936bcc2c7b6c8b0.tar.gz
nextcloud-server-7fc85bbf784b6798e431d49d3936bcc2c7b6c8b0.zip
Obsolete test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/Settings')
-rw-r--r--tests/Settings/Controller/UsersControllerTest.php23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/Settings/Controller/UsersControllerTest.php b/tests/Settings/Controller/UsersControllerTest.php
index 1b59f15efb0..4d8ee15f9eb 100644
--- a/tests/Settings/Controller/UsersControllerTest.php
+++ b/tests/Settings/Controller/UsersControllerTest.php
@@ -1878,29 +1878,6 @@ class UsersControllerTest extends \Test\TestCase {
$this->assertEquals($expectedResponse, $response);
}
- public function testSetDisplayNameNull() {
- $user = $this->createMock(IUser::class);
- $user->method('getUID')->willReturn('userName');
-
- $this->userSession
- ->expects($this->once())
- ->method('getUser')
- ->willReturn($user);
-
- $expectedResponse = new DataResponse(
- [
- 'status' => 'error',
- 'data' => [
- 'message' => 'Authentication error',
- ],
- ]
- );
- $controller = $this->getController(true);
- $response = $controller->setDisplayName(null, 'displayName');
-
- $this->assertEquals($expectedResponse, $response);
- }
-
public function dataSetDisplayName() {
$data = [];