You are here

protected function S3FileMapTestTrait::truncateS3FileMap in Acquia Content Hub 8.2

Clears s3 file map table.

1 call to S3FileMapTestTrait::truncateS3FileMap()
S3FileOriginLocatorTest::testNoRecordLocally in modules/acquia_contenthub_s3/tests/src/Kernel/S3FileOriginLocatorTest.php
@covers ::getS3FileSource

File

modules/acquia_contenthub_s3/tests/src/Kernel/S3FileMapTestTrait.php, line 17

Class

S3FileMapTestTrait
Provides helper methods for s3 file map table interactions.

Namespace

Drupal\Tests\acquia_contenthub_s3\Kernel

Code

protected function truncateS3FileMap() : void {
  \Drupal::database()
    ->truncate(S3FileMap::TABLE_NAME)
    ->execute();
}