protected function AccessTest::tearDown in Apigee Edge 8
Overrides BrowserTestBase::tearDown
File
- modules/
apigee_edge_teams/ tests/ src/ Functional/ AccessTest.php, line 263
Class
- AccessTest
- Teams module access test.
Namespace
Drupal\Tests\apigee_edge_teams\FunctionalCode
protected function tearDown() {
if ($this->team !== NULL) {
try {
$this->teamStorage
->delete([
$this->team,
]);
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
if ($this->account !== NULL) {
try {
$this->account
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
if ($this->teamMemberAccount !== NULL) {
try {
$this->teamMemberAccount
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
if ($this->nonTeamMemberAccount !== NULL) {
try {
$this->nonTeamMemberAccount
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
parent::tearDown();
}