summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 = [];