You are here

protected function S3fsTestBase::tearDown in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/S3fsTestBase.php \Drupal\Tests\s3fs\Functional\S3fsTestBase::tearDown()

Clean up S3 folder.

Overrides BrowserTestBase::tearDown

File

tests/src/Functional/S3fsTestBase.php, line 159

Class

S3fsTestBase
S3 File System Test Base.

Namespace

Drupal\Tests\s3fs\Functional

Code

protected function tearDown() : void {
  if (!$this->bucketNotFound) {
    $this->s3
      ->deleteMatchingObjects($this->s3Config['bucket'], $this->remoteTestsFolderKey);
  }
  parent::tearDown();
}