You are here

protected function DeveloperAppUITest::tearDown in Apigee Edge 8

Same name in this branch
  1. 8 tests/src/Functional/DeveloperAppUITest.php \Drupal\Tests\apigee_edge\Functional\DeveloperAppUITest::tearDown()
  2. 8 tests/src/FunctionalJavascript/DeveloperAppUITest.php \Drupal\Tests\apigee_edge\FunctionalJavascript\DeveloperAppUITest::tearDown()

Overrides WebDriverTestBase::tearDown

File

tests/src/FunctionalJavascript/DeveloperAppUITest.php, line 49

Class

DeveloperAppUITest
Developer app UI Javascript tests.

Namespace

Drupal\Tests\apigee_edge\FunctionalJavascript

Code

protected function tearDown() {
  try {
    if ($this->account !== NULL) {
      $this->account
        ->delete();
    }
  } catch (\Exception $exception) {
    $this
      ->logException($exception);
  }
  foreach ($this->products as $product) {
    try {
      if ($product !== NULL) {
        $product
          ->delete();
      }
    } catch (\Exception $exception) {
      $this
        ->logException($exception);
    }
  }
  parent::tearDown();
}