public function S3Test::testEmptyCnameDoesNotBreakConfiguration in Flysystem - S3 8
Same name and namespace in other branches
- 2.0.x tests/src/Unit/Flysystem/S3Test.php \NoDrupal\Tests\flysystem_s3\Unit\Flysystem\S3Test::testEmptyCnameDoesNotBreakConfiguration()
File
- tests/
src/ Unit/ Flysystem/ S3Test.php, line 128
Class
- S3Test
- @coversDefaultClass \Drupal\flysystem_s3\Flysystem\S3 @covers \Drupal\flysystem_s3\Flysystem\S3 @group flysystem_s3
Namespace
NoDrupal\Tests\flysystem_s3\Unit\FlysystemCode
public function testEmptyCnameDoesNotBreakConfiguration() {
$configuration = [
'cname' => NULL,
'bucket' => 'my-bucket',
];
$plugin = new S3($this
->createMock(S3ClientInterface::class), new Config($configuration));
$this
->assertSame('http://s3.amazonaws.com/my-bucket/foo.html', $plugin
->getExternalUrl('s3://foo.html'));
}