You are here

public function S3UrlTest::testGetImageStyleUrl in AmazonS3 7.2

@covers Drupal\amazons3\S3Url::getImageStyleUrl

File

tests/S3UrlTest.php, line 59

Class

S3UrlTest
Test S3Url.

Namespace

Drupal\amazons3Test

Code

public function testGetImageStyleUrl() {
  $url = new S3Url('bucket', 'key');
  $styleUrl = $url
    ->getImageStyleUrl('style_name');
  $this
    ->assertEquals($styleUrl
    ->getKey(), "styles/style_name/key");
}