public function S3Test::testCreate in Flysystem - S3 2.0.x
Same name and namespace in other branches
- 8 tests/src/Unit/Flysystem/S3Test.php \NoDrupal\Tests\flysystem_s3\Unit\Flysystem\S3Test::testCreate()
File
- tests/
src/ Unit/ Flysystem/ S3Test.php, line 75
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 testCreate() {
$container = new ContainerBuilder();
$container
->set('request_stack', new RequestStack());
$container
->get('request_stack')
->push(Request::create('https://example.com/'));
$configuration = [
'key' => 'fee',
'secret' => 'fo',
'region' => 'eu-west-1',
'bucket' => 'example-bucket',
];
$plugin = S3::create($container, $configuration, '', '');
$this
->assertInstanceOf(S3::class, $plugin);
}