protected function DeveloperAppUITest::tearDown in Apigee Edge 8
Same name in this branch
- 8 tests/src/Functional/DeveloperAppUITest.php \Drupal\Tests\apigee_edge\Functional\DeveloperAppUITest::tearDown()
- 8 tests/src/FunctionalJavascript/DeveloperAppUITest.php \Drupal\Tests\apigee_edge\FunctionalJavascript\DeveloperAppUITest::tearDown()
Overrides BrowserTestBase::tearDown
File
- tests/
src/ Functional/ DeveloperAppUITest.php, line 74
Class
- DeveloperAppUITest
- Developer app UI tests.
Namespace
Drupal\Tests\apigee_edge\FunctionalCode
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();
}