You are here

public function S3fsUrlGenerationTest::testCustomHostnameWithPort in S3 File System 4.0.x

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/S3fsUrlGenerationTest.php \Drupal\Tests\s3fs\Functional\S3fsUrlGenerationTest::testCustomHostnameWithPort()

Test Custom Hostname with port link generation.

File

tests/src/Functional/S3fsUrlGenerationTest.php, line 119

Class

S3fsUrlGenerationTest
S3 File System Tests.

Namespace

Drupal\Tests\s3fs\Functional

Code

public function testCustomHostnameWithPort() {
  $urlBase = 'http://test.example.org:8080';
  $this
    ->config('s3fs.settings')
    ->set('use_cname', TRUE)
    ->set('domain', 'test.example.org:8080')
    ->save();
  $this
    ->runTests($urlBase);
}