You are here

public function S3fsUrlGenerationTest::testHttpsCustomHostname in S3 File System 8.3

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

Test custom hostname secure link generation.

File

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

Class

S3fsUrlGenerationTest
S3 File System Tests.

Namespace

Drupal\Tests\s3fs\Functional

Code

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