public function S3fsUrlGenerationTest::testCustomEndpointWithPortUriGeneration 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::testCustomEndpointWithPortUriGeneration()
Test with a custom S3 Endpoint that contains a non standard port.
File
- tests/
src/ Functional/ S3fsUrlGenerationTest.php, line 92
Class
- S3fsUrlGenerationTest
- S3 File System Tests.
Namespace
Drupal\Tests\s3fs\FunctionalCode
public function testCustomEndpointWithPortUriGeneration() {
$urlBase = 'http://513ec7bfc9ac489781a764057973d870.s3fslocalstack:4566';
$this
->config('s3fs.settings')
->set('use_customhost', TRUE)
->set('hostname', 'https://s3fslocalstack:4566')
->save();
$this
->runTests($urlBase);
}