summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-03-12 12:37:03 +0100
committerGitHub <noreply@github.com>2018-03-12 12:37:03 +0100
commitaf89db3407e599ea47d62a851759fa929cdd4713 (patch)
tree6898e7519c1cae2b69b44a323aa3791eb42fcce7 /tests
parent430c478ba3d11945d2db16f2087731ce0c8c8201 (diff)
parent7fc85bbf784b6798e431d49d3936bcc2c7b6c8b0 (diff)
downloadnextcloud-server-af89db3407e599ea47d62a851759fa929cdd4713.tar.gz
nextcloud-server-af89db3407e599ea47d62a851759fa929cdd4713.zip
Merge pull request #8743 from nextcloud/strict_settings
Strict settings
Diffstat (limited to 'tests')
-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 = [];