You are here

public function S3Test::testIamAuth in Flysystem - S3 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Unit/Flysystem/S3Test.php \NoDrupal\Tests\flysystem_s3\Unit\Flysystem\S3Test::testIamAuth()

File

tests/src/Unit/Flysystem/S3Test.php, line 153

Class

S3Test
@coversDefaultClass \Drupal\flysystem_s3\Flysystem\S3 @covers \Drupal\flysystem_s3\Flysystem\S3 @group flysystem_s3

Namespace

NoDrupal\Tests\flysystem_s3\Unit\Flysystem

Code

public function testIamAuth() {
  $container = new ContainerBuilder();
  $container
    ->set('request_stack', new RequestStack());
  $container
    ->get('request_stack')
    ->push(Request::create('https://example.com/'));
  $container
    ->set('cache.default', new MemoryBackend('bin'));
  $configuration = [
    'bucket' => 'example-bucket',
  ];
  $plugin = S3::create($container, $configuration, '', '');
}