|
14 | 14 | use chillerlan\OAuth\OAuthOptions;
|
15 | 15 | use chillerlan\OAuth\Core\AccessToken;
|
16 | 16 | use chillerlan\OAuth\Storage\{
|
17 |
| - OAuthStorageException, OAuthStorageInterface, StateNotFoundException, TokenNotFoundException, VerifierNotFoundException |
| 17 | + OAuthStorageException, OAuthStorageInterface, ItemNotFoundException |
18 | 18 | };
|
19 | 19 | use PHPUnit\Framework\TestCase;
|
20 | 20 | use ReflectionMethod;
|
@@ -68,7 +68,7 @@ public function testClearAllAccessTokens():void{
|
68 | 68 | }
|
69 | 69 |
|
70 | 70 | public function testGetAccessTokenNotFoundException():void{
|
71 |
| - $this->expectException(TokenNotFoundException::class); |
| 71 | + $this->expectException(ItemNotFoundException::class); |
72 | 72 |
|
73 | 73 | $this->storage->getAccessToken('LOLNOPE');
|
74 | 74 | }
|
@@ -103,7 +103,7 @@ public function testClearAllCSRFStates():void{
|
103 | 103 | }
|
104 | 104 |
|
105 | 105 | public function testGetCSRFStateNotFoundException():void{
|
106 |
| - $this->expectException(StateNotFoundException::class); |
| 106 | + $this->expectException(ItemNotFoundException::class); |
107 | 107 |
|
108 | 108 | $this->storage->getCSRFState('LOLNOPE');
|
109 | 109 | }
|
@@ -138,7 +138,7 @@ public function testClearAllPKCEVerifiers():void{
|
138 | 138 | }
|
139 | 139 |
|
140 | 140 | public function testGetPKCEVerifierNotFoundException():void{
|
141 |
| - $this->expectException(VerifierNotFoundException::class); |
| 141 | + $this->expectException(ItemNotFoundException::class); |
142 | 142 |
|
143 | 143 | $this->storage->getCodeVerifier('LOLNOPE');
|
144 | 144 | }
|
|
0 commit comments