You are here

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

Test using a path based endpoint bucket.

File

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

Class

S3fsUrlGenerationTest
S3 File System Tests.

Namespace

Drupal\Tests\s3fs\Functional

Code

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