You are here

public function StreamWrapperTest::testGetOptions in AmazonS3 7.2

Test that the ACL is set to public-read by default.

@covers \Drupal\amazons3\StreamWrapper::getOptions

File

tests/StreamWrapperTest.php, line 315

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testGetOptions() {
  $wrapper = new StreamWrapper();
  $wrapper
    ->setUri('s3://bucket.example.com');
  $this
    ->assertArraySubset(array(
    'ACL' => 'public-read',
  ), $wrapper
    ->getOptions());
}