You are here

protected function UserCreateTest::tearDown in Apigee Edge 8

Overrides KernelTestBase::tearDown

File

tests/src/Kernel/UserCreateTest.php, line 77

Class

UserCreateTest
Test create operations for User entity type.

Namespace

Drupal\Tests\apigee_edge\Kernel

Code

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();
    }
  } catch (\Exception $exception) {
    $this
      ->logException($exception);
  }
}