public function S3fsUrlGenerationTest::testCustomHostname 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::testCustomHostname()
Test Custom Hostname link generation.
File
- tests/
src/ Functional/ S3fsUrlGenerationTest.php, line 104
Class
- S3fsUrlGenerationTest
- S3 File System Tests.
Namespace
Drupal\Tests\s3fs\FunctionalCode
public function testCustomHostname() {
$urlBase = 'http://test.example.org';
$this
->config('s3fs.settings')
->set('use_cname', TRUE)
->set('domain', 'test.example.org')
->save();
$this
->runTests($urlBase);
}