protected function UiTest::tearDown in Apigee Edge 8
Overrides BrowserTestBase::tearDown
File
- modules/
apigee_edge_teams/ tests/ src/ Functional/ UiTest.php, line 112
Class
- UiTest
- Team and team app entity UI tests.
Namespace
Drupal\Tests\apigee_edge_teams\FunctionalCode
protected function tearDown() {
if ($this->account !== NULL) {
try {
$this->account
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
if ($this->otherAccount !== NULL) {
try {
$this->otherAccount
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
if ($this->team !== NULL) {
try {
$this->teamStorage
->delete([
$this->team,
]);
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
if ($this->product !== NULL) {
try {
$this->product
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
parent::tearDown();
}