You are here

public function StreamWrapperTest::testBasenameUriNotSet in AmazonS3 7.2

Test that we throw an exception if a URI is not set.

@expectedException \LogicException

@covers \Drupal\amazons3\StreamWrapper::getBasename

File

tests/StreamWrapperTest.php, line 365

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testBasenameUriNotSet() {
  $wrapper = new StreamWrapper();
  $wrapper
    ->getBasename();
}