public function S3fsUrlGenerationTest::testPathBasedEndpointWithCustomHostname in S3 File System 4.0.x
Same name and namespace in other branches
- 8.3 tests/src/Functional/S3fsUrlGenerationTest.php \Drupal\Tests\s3fs\Functional\S3fsUrlGenerationTest::testPathBasedEndpointWithCustomHostname()
Test using a path based endpoint bucket with CNAME.
File
- tests/
src/ Functional/ S3fsUrlGenerationTest.php, line 175
Class
- S3fsUrlGenerationTest
- S3 File System Tests.
Namespace
Drupal\Tests\s3fs\FunctionalCode
public function testPathBasedEndpointWithCustomHostname() {
$urlBase = 'http://test.example.org/513ec7bfc9ac489781a764057973d870';
$this
->config('s3fs.settings')
->set('use_path_style_endpoint', TRUE)
->set('use_cname', TRUE)
->set('domain', 'test.example.org')
->save();
$this
->runTests($urlBase);
}