public function S3UrlTest::testConstruct in AmazonS3 7.2
Test that we set the scheme, bucket, and key properly.
@covers Drupal\amazons3\S3Url::__construct
File
- tests/
S3UrlTest.php, line 20
Class
- S3UrlTest
- Test S3Url.
Namespace
Drupal\amazons3TestCode
public function testConstruct() {
$url = new S3Url('bucket', 'key');
$this
->assertEquals('s3://bucket/key', (string) $url);
$this
->assertEquals('bucket', $url
->getBucket());
$this
->assertEquals('key', $url
->getKey());
}