aboutsummaryrefslogtreecommitdiffstats
path: root/apps/oauth2
diff options
context:
space:
mode:
Diffstat (limited to 'apps/oauth2')
-rw-r--r--apps/oauth2/tests/Db/AccessTokenMapperTest.php3
-rw-r--r--apps/oauth2/tests/Db/ClientMapperTest.php5
2 files changed, 5 insertions, 3 deletions
diff --git a/apps/oauth2/tests/Db/AccessTokenMapperTest.php b/apps/oauth2/tests/Db/AccessTokenMapperTest.php
index 5bb069248f3..d1d595ef003 100644
--- a/apps/oauth2/tests/Db/AccessTokenMapperTest.php
+++ b/apps/oauth2/tests/Db/AccessTokenMapperTest.php
@@ -7,6 +7,7 @@ namespace OCA\OAuth2\Tests\Db;
use OCA\OAuth2\Db\AccessToken;
use OCA\OAuth2\Db\AccessTokenMapper;
+use OCA\OAuth2\Exceptions\AccessTokenNotFoundException;
use OCP\AppFramework\Utility\ITimeFactory;
use Test\TestCase;
@@ -39,7 +40,7 @@ class AccessTokenMapperTest extends TestCase {
public function testDeleteByClientId(): void {
- $this->expectException(\OCA\OAuth2\Exceptions\AccessTokenNotFoundException::class);
+ $this->expectException(AccessTokenNotFoundException::class);
$this->accessTokenMapper->deleteByClientId(1234);
$token = new AccessToken();
diff --git a/apps/oauth2/tests/Db/ClientMapperTest.php b/apps/oauth2/tests/Db/ClientMapperTest.php
index 8c00c2e0a21..7c11470d096 100644
--- a/apps/oauth2/tests/Db/ClientMapperTest.php
+++ b/apps/oauth2/tests/Db/ClientMapperTest.php
@@ -7,6 +7,7 @@ namespace OCA\OAuth2\Tests\Db;
use OCA\OAuth2\Db\Client;
use OCA\OAuth2\Db\ClientMapper;
+use OCA\OAuth2\Exceptions\ClientNotFoundException;
use Test\TestCase;
/**
@@ -40,7 +41,7 @@ class ClientMapperTest extends TestCase {
}
public function testGetByIdentifierNotExisting(): void {
- $this->expectException(\OCA\OAuth2\Exceptions\ClientNotFoundException::class);
+ $this->expectException(ClientNotFoundException::class);
$this->clientMapper->getByIdentifier('MyTotallyNotExistingClient');
}
@@ -57,7 +58,7 @@ class ClientMapperTest extends TestCase {
}
public function testGetByUidNotExisting(): void {
- $this->expectException(\OCA\OAuth2\Exceptions\ClientNotFoundException::class);
+ $this->expectException(ClientNotFoundException::class);
$this->clientMapper->getByUid(1234);
}