You are here

protected function DeveloperAppCredentialEventTest::tearDown in Apigee Edge 8

Overrides BrowserTestBase::tearDown

File

tests/src/Functional/DeveloperAppCredentialEventTest.php, line 97

Class

DeveloperAppCredentialEventTest
Developer app keys, credential event test.

Namespace

Drupal\Tests\apigee_edge\Functional

Code

protected function tearDown() {
  try {
    if ($this->developer !== NULL) {
      $this->developer
        ->delete();
    }
  } catch (\Exception $exception) {
    $this
      ->logException($exception);
  }
  try {
    if ($this->apiProduct !== NULL) {
      $this->apiProduct
        ->delete();
    }
  } catch (\Exception $exception) {
    $this
      ->logException($exception);
  }
  parent::tearDown();
}