You are here

protected function CacheTest::userDeletedTest in Apigee Edge 8

Tests developer and developer app cache invalidation after user removal.

1 call to CacheTest::userDeletedTest()
CacheTest::testCache in tests/src/FunctionalJavascript/CacheTest.php
Tests cache of Apigee Edge entities.

File

tests/src/FunctionalJavascript/CacheTest.php, line 221

Class

CacheTest
Apigee Edge entity cache related tests.

Namespace

Drupal\Tests\apigee_edge\FunctionalJavascript

Code

protected function userDeletedTest() {
  $this
    ->assertCacheInvalidation([
    "values:developer:{$this->developer->id()}",
    "values:developer_app:{$this->developerApp->id()}",
    "app_names:developer_app:{$this->developer->uuid()}:{$this->developerApp->getName()}",
  ], function () {
    $this
      ->drupalLogout();
    $this->account
      ->delete();
    $this->account = NULL;
  });
}