protected function AppWarningsCheckerTest::tearDown in Apigee Edge 8
Overrides KernelTestBase::tearDown
File
- tests/
src/ Kernel/ Entity/ AppWarningsCheckerTest.php, line 217
Class
- AppWarningsCheckerTest
- Tests the AppWarningsChecker.
Namespace
Drupal\Tests\apigee_edge\Kernel\EntityCode
protected function tearDown() {
$this->stack
->reset();
try {
if ($this->account) {
$this
->queueDeveloperResponse($this->account);
$developer = \Drupal::entityTypeManager()
->getStorage('developer')
->create([
'email' => $this->account
->getEmail(),
]);
$developer
->delete();
}
if ($this->approvedAppWithApprovedCredential) {
$this->approvedAppWithApprovedCredential
->delete();
}
if ($this->approvedAppWithOneRevokedCredential) {
$this->approvedAppWithOneRevokedCredential
->delete();
}
if ($this->approvedAppWithAllRevokedCredential) {
$this->approvedAppWithAllRevokedCredential
->delete();
}
if ($this->revokedAppWithRevokedCredential) {
$this->revokedAppWithRevokedCredential
->delete();
}
if ($this->approvedAppWithExpiredCredential) {
$this->approvedAppWithExpiredCredential
->delete();
}
if ($this->revokedAppWithExpiredCredential) {
$this->revokedAppWithExpiredCredential
->delete();
}
if ($this->apiProduct) {
$this->apiProduct
->delete();
}
} catch (\Exception $exception) {
$this
->logException($exception);
}
parent::tearDown();
}