public function OauthTokenFileStorageTest::testCacheClear in Apigee Edge 8
Test that the tokens are removed when cache is cleared.
File
- tests/
src/ Kernel/ OauthTokenFileStorageTest.php, line 221
Class
- OauthTokenFileStorageTest
- OAuth cache storage tests.
Namespace
Drupal\Tests\apigee_edge\KernelCode
public function testCacheClear() {
$storage = $this
->tokenStorage();
// Save the token.
$storage
->saveToken($this->testTokenData);
$this
->assertNotEmpty($storage
->getAccessToken());
drupal_flush_all_caches();
$this
->assertEmpty($storage
->getAccessToken());
}