Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | public function testPlugin() |
||
25 | { |
||
26 | $kernel = new AppKernel( |
||
27 | [ |
||
28 | 'MICRO_FS_DEFAULT_TYPE' => 'aws_s3', |
||
29 | 'MICRO_FS_DEFAULT_KEY_ACCESS' => 'access-key', |
||
30 | 'MICRO_FS_DEFAULT_KEY_SECRET' => 'secret-key', |
||
31 | 'MICRO_FS_DEFAULT_REGION' => 'us-west', |
||
32 | 'MICRO_FS_DEFAULT_BUCKET' => 'test-bucket', |
||
33 | ], |
||
34 | [ |
||
35 | FilesystemS3AdapterPlugin::class, |
||
36 | ] |
||
37 | ); |
||
38 | |||
39 | $kernel->run(); |
||
40 | /** @var FilesystemFacadeInterface $facade */ |
||
41 | $facade = $kernel->container()->get(FilesystemFacadeInterface::class); |
||
42 | $operator = $facade->createFsOperator('default'); |
||
43 | |||
44 | $this->assertInstanceOf(FilesystemOperator::class, $operator); |
||
45 | } |
||
47 |