You are here

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

Test default link generation using a different region.

File

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

Class

S3fsUrlGenerationTest
S3 File System Tests.

Namespace

Drupal\Tests\s3fs\Functional

Code

public function testDefaultDifferentRegion() {
  $urlBase = 'http://513ec7bfc9ac489781a764057973d870.s3.us-east-2.amazonaws.com';
  $this
    ->config('s3fs.settings')
    ->set('region', 'us-east-2')
    ->save();
  $this
    ->runTests($urlBase);
}