You are here

protected function ApiProductAccessTest::tearDown in Apigee Edge 8

Overrides WebDriverTestBase::tearDown

File

tests/src/FunctionalJavascript/ApiProductAccessTest.php, line 133

Class

ApiProductAccessTest
Validates built-in access control on API products.

Namespace

Drupal\Tests\apigee_edge\FunctionalJavascript

Code

protected function tearDown() {

  /** @var \Drupal\Core\Entity\EntityInterface[] $entities */
  $entities = array_merge($this->users, $this->apiProducts);
  foreach ($entities as $entity) {
    try {
      if ($entity !== NULL) {
        $entity
          ->delete();
      }
    } catch (\Exception $exception) {
      $this
        ->logException($exception);
    }
  }
  parent::tearDown();
}