You are here

public function StreamWrapperTest::testSetSchemeUri in AmazonS3 7.2

Test setting a scheme-only URI.

@covers \Drupal\amazons3\StreamWrapper::setUri

File

tests/StreamWrapperTest.php, line 177

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

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