You are here

public function S3UrlTest::testSetPath in AmazonS3 7.2

@covers Drupal\amazons3\S3Url::setPath

File

tests/S3UrlTest.php, line 50

Class

S3UrlTest
Test S3Url.

Namespace

Drupal\amazons3Test

Code

public function testSetPath() {
  $url = new S3Url('bucket');
  $url
    ->setPath(array(
    'directory',
    'key',
  ));
  $this
    ->assertEquals('/directory/key', $url
    ->getPath());
}