File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments