You are here

public function StreamWrapperTest::testSetUri in AmazonS3 7.2

Test setting a URI.

@covers \Drupal\amazons3\StreamWrapper::setUri @covers \Drupal\amazons3\StreamWrapper::getUri

File

tests/StreamWrapperTest.php, line 165

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testSetUri() {
  $wrapper = new StreamWrapper();
  $uri = 's3://bucket.example.com/key';
  $wrapper
    ->setUri($uri);
  $this
    ->assertEquals($uri, $wrapper
    ->getUri());
}