protected function S3FileOriginLocatorTest::constructS3Locator in Acquia Content Hub 8.2
Returns a freshly constructed S3FileOriginLocator object.
Return value
\Drupal\acquia_contenthub_s3\S3FileOriginLocator The locator service.
Throws
\Exception
File
- modules/
acquia_contenthub_s3/ tests/ src/ Kernel/ S3FileOriginLocatorTest.php, line 185
Class
- S3FileOriginLocatorTest
- Tests the S3FileOriginLocator.
Namespace
Drupal\Tests\acquia_contenthub_s3\KernelCode
protected function constructS3Locator() : S3FileOriginLocator {
return new S3FileOriginLocator($this->container
->get('acquia_contenthub_s3.file_map'), $this->container
->get('acquia_contenthub_s3.file_storage'), $this->container
->get('acquia_contenthub_common_actions'), $this->container
->get('config.factory')
->get('acquia_contenthub.admin_settings'));
}