You are here

public function StreamWrapperTest::testRegister in AmazonS3 7.2

Test that stream registrations are blocked.

@covers \Drupal\amazons3\StreamWrapper::register @expectedException \LogicException

File

tests/StreamWrapperTest.php, line 301

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testRegister() {
  $client = S3Client::factory([
    'credentials' => new Credentials('placeholder', 'placeholder'),
  ]);
  StreamWrapper::register($client);
}