protected function TeamInvitationsTest::tearDown in Apigee Edge 8
Overrides BrowserTestBase::tearDown
File
- modules/
apigee_edge_teams/ tests/ src/ Functional/ TeamInvitationsTest.php, line 107
Class
- TeamInvitationsTest
- Team invitation test.
Namespace
Drupal\Tests\apigee_edge_teams\FunctionalCode
protected function tearDown() {
if (!$this->integration_enabled) {
return;
}
$teams = [
$this->teamA,
$this->teamB,
];
foreach ($teams as $team) {
if ($team !== NULL) {
try {
$team
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
}
$accounts = [
$this->accountAdmin,
$this->accountUser,
];
foreach ($accounts as $account) {
if ($account !== NULL) {
try {
$account
->delete();
} catch (\Exception $exception) {
$this
->logException($exception);
}
}
}
parent::tearDown();
}