You are here

public function StreamWrapperTest::testDirnameSubdir in AmazonS3 7.2

Test that dirname works with a key.

@covers \Drupal\amazons3\StreamWrapper::dirname

File

tests/StreamWrapperTest.php, line 273

Class

StreamWrapperTest
Tests \Drupal\amazons3\StreamWrapper.

Namespace

Drupal\amazons3Test

Code

public function testDirnameSubdir() {
  $this
    ->assertEquals('s3://bucket.example.com', $this->wrapper
    ->dirname('s3://bucket.example.com/subdir'));
}