You are here

protected function TeamMembershipManagerTest::tearDown in Apigee Edge 8

Overrides BrowserTestBase::tearDown

File

modules/apigee_edge_teams/tests/src/Functional/TeamMembershipManagerTest.php, line 89

Class

TeamMembershipManagerTest
Team membership manager service test.

Namespace

Drupal\Tests\apigee_edge_teams\Functional

Code

protected function tearDown() {
  foreach ($this->developers as $developer) {
    try {
      $this->developerStorage
        ->delete([
        $developer,
      ]);
    } catch (\Exception $exception) {
      $this
        ->logException($exception);
    }
  }
  if ($this->team !== NULL) {
    try {
      $this->teamStorage
        ->delete([
        $this->team,
      ]);
    } catch (\Exception $exception) {
      $this
        ->logException($exception);
    }
  }
  parent::tearDown();
}