diff options
Diffstat (limited to 'apps/settings/tests/Controller/UsersControllerTest.php')
-rw-r--r-- | apps/settings/tests/Controller/UsersControllerTest.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/tests/Controller/UsersControllerTest.php b/apps/settings/tests/Controller/UsersControllerTest.php index eb5790a0401..d5d067f3eeb 100644 --- a/apps/settings/tests/Controller/UsersControllerTest.php +++ b/apps/settings/tests/Controller/UsersControllerTest.php @@ -353,7 +353,6 @@ class UsersControllerTest extends \Test\TestCase { * @param bool $setDisplayNameResult * @param bool $canChangeEmail * - * @expectedException \OC\ForbiddenException */ public function testSaveUserSettingsException($data, $oldEmailAddress, @@ -361,6 +360,8 @@ class UsersControllerTest extends \Test\TestCase { $setDisplayNameResult, $canChangeEmail ) { + $this->expectException(\OC\ForbiddenException::class); + $controller = $this->getController(); $user = $this->createMock(IUser::class); |