diff options
Diffstat (limited to 'tests/lib/Remote/Api/OCSTest.php')
-rw-r--r-- | tests/lib/Remote/Api/OCSTest.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/Remote/Api/OCSTest.php b/tests/lib/Remote/Api/OCSTest.php index af0b570c091..43e7c61a4cd 100644 --- a/tests/lib/Remote/Api/OCSTest.php +++ b/tests/lib/Remote/Api/OCSTest.php @@ -67,11 +67,11 @@ class OCSTest extends TestCase { $this->assertEquals('user', $user->getUserId()); } - /** - * @expectedException \Exception - * @expectedExceptionMessage Invalid user response, expected field email not found - */ + public function testGetUserInvalidResponse() { + $this->expectException(\Exception::class); + $this->expectExceptionMessage('Invalid user response, expected field email not found'); + $client = $this->getOCSClient(); $this->expectGetRequest($this->getOCSUrl('cloud/users/user'), @@ -81,10 +81,10 @@ class OCSTest extends TestCase { $client->getUser('user'); } - /** - * @expectedException \OC\ForbiddenException - */ + public function testInvalidPassword() { + $this->expectException(\OC\ForbiddenException::class); + $client = $this->getOCSClient(); $this->expectGetRequest($this->getOCSUrl('cloud/users/user'), |