You are here

public function StreamWrapperConfigurationTest::testCloudFrontCredentials in AmazonS3 7.2

@covers Drupal\amazons3\StreamWrapperConfiguration @expectedException \InvalidArgumentException

File

tests/StreamWrapperConfigurationTest.php, line 109

Class

StreamWrapperConfigurationTest
@class StreamWrapperConfigurationTest @package Drupal\amazons3Test

Namespace

Drupal\amazons3Test

Code

public function testCloudFrontCredentials() {
  $config = StreamWrapperConfiguration::fromConfig(array(
    'bucket' => 'bucket',
    'region' => 'region',
  ));
  $config
    ->setCloudFrontCredentials('/does-not-exist', 'asdf');
}