You are here

protected function S3FileMapperTest::constructFileMapper in Acquia Content Hub 8.2

Construct a fresh and crispy S3FileMapper object.

Return value

\Drupal\acquia_contenthub_s3\S3FileMapper The file mapper object.

Throws

\Exception

2 calls to S3FileMapperTest::constructFileMapper()
S3FileMapperTest::testMapS3File in modules/acquia_contenthub_s3/tests/src/Kernel/S3FileMapperTest.php
@covers ::mapS3File
S3FileMapperTest::testMapS3FileNoBucket in modules/acquia_contenthub_s3/tests/src/Kernel/S3FileMapperTest.php
@covers ::mapS3File @dataProvider mapS3FileDataProvider

File

modules/acquia_contenthub_s3/tests/src/Kernel/S3FileMapperTest.php, line 147

Class

S3FileMapperTest
Tests the S3FileMapper.

Namespace

Drupal\Tests\acquia_contenthub_s3\Kernel

Code

protected function constructFileMapper() {
  return new S3FileMapper($this->container
    ->get('config.factory'), $this->container
    ->get('file_system'), $this->container
    ->get('acquia_contenthub_s3.file_map'), $this->container
    ->get('stream_wrapper_manager'));
}