Skip to content

Commit 2df52a1

Browse files
committed
fix: Wrong token cache test assertion
1 parent 5fa3df1 commit 2df52a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/GraphServiceClientTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ function (RequestInterface $request) {
100100

101101
// cache is populated
102102
$this->assertInstanceOf(AccessToken::class, $customCache->getTokenWithContext($tokenRequestContext));
103+
$this->assertEquals($this->testJWT, $customCache->getTokenWithContext($tokenRequestContext)->getToken());
103104

104105
// hydrate another cache for follow-up request
105106
$newCache = new InMemoryAccessTokenCache($tokenRequestContext, $customCache->getTokenWithContext($tokenRequestContext));
@@ -119,6 +120,6 @@ function (RequestInterface $request) {
119120

120121
$me = $client->me()->get()->wait();
121122
// cache is populated
122-
$this->assertInstanceOf(AccessToken::class, $customCache->getTokenWithContext($tokenRequestContext));
123+
$this->assertInstanceOf(AccessToken::class, $newCache->getTokenWithContext($tokenRequestContext));
123124
}
124125
}

0 commit comments

Comments
 (0)