You are here

public function StreamWrapperConfigurationTest::testCacheLifetimeException in AmazonS3 7.2

@expectedException \LogicException

File

tests/StreamWrapperConfigurationTest.php, line 100

Class

StreamWrapperConfigurationTest
@class StreamWrapperConfigurationTest @package Drupal\amazons3Test

Namespace

Drupal\amazons3Test

Code

public function testCacheLifetimeException() {
  $config = StreamWrapperConfiguration::fromConfig(array(
    'bucket' => 'bucket',
    'region' => 'region',
  ));
  $config
    ->setCacheLifetime(0);
}