diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-09 14:10:20 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-03-09 14:10:20 +0100 |
commit | 7fc85bbf784b6798e431d49d3936bcc2c7b6c8b0 (patch) | |
tree | b39a1735cf6d3dbab2c7a64591bda6eedc2fd6f7 /tests/Settings | |
parent | d9d33d14e77ed218b095e17398ae6f53b077939c (diff) | |
download | nextcloud-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.php | 23 |
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 = []; |