Skip to content

Commit ee7a448

Browse files
committed
🚿
1 parent 353eafb commit ee7a448

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/Providers/Live/OAuthProviderLiveTestAbstract.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ public function testMe():void{
6161
}
6262
}
6363

64-
protected function assertUnauthorizedAccessException(AccessToken $token):void{
65-
$this->expectException(UnauthorizedAccessException::class);
66-
67-
/** @phan-suppress-next-line PhanUndeclaredMethod ($this->provider is, in fact, instance of UserInfo) */
68-
$this->provider->me();
69-
}
70-
7164
public function testMeUnauthorizedAccessException():void{
7265

7366
if(!$this->provider instanceof UserInfo){
@@ -87,7 +80,10 @@ public function testMeUnauthorizedAccessException():void{
8780

8881
$this->provider->setStorage($tempStorage);
8982

90-
$this->assertUnauthorizedAccessException($token);
83+
$this->expectException(UnauthorizedAccessException::class);
84+
85+
/** @phan-suppress-next-line PhanUndeclaredMethod ($this->provider is, in fact, instance of UserInfo) */
86+
$this->provider->me();
9187
}
9288

9389
}

0 commit comments

Comments
 (0)