You are here

public function S3fsUrlGenerationTest::testHttpsDefaultUriGeneration 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::testHttpsDefaultUriGeneration()

Test defaults secure link generation.

File

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

Class

S3fsUrlGenerationTest
S3 File System Tests.

Namespace

Drupal\Tests\s3fs\Functional

Code

public function testHttpsDefaultUriGeneration() {
  $urlBase = 'https://513ec7bfc9ac489781a764057973d870.s3.amazonaws.com';
  $this
    ->config('s3fs.settings')
    ->set('use_https', TRUE)
    ->save();
  $this
    ->runTests($urlBase);
}