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
Namespace
Drupal\amazons3TestCode
public function testGetOptions() {
$wrapper = new StreamWrapper();
$wrapper
->setUri('s3://bucket.example.com');
$this
->assertArraySubset(array(
'ACL' => 'public-read',
), $wrapper
->getOptions());
}