| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 23 | public function testPlugin() |
||
| 24 | { |
||
| 25 | $kernel = new AppKernel( |
||
| 26 | [ |
||
| 27 | 'MICRO_FS_DEFAULT_TYPE' => 'local', |
||
| 28 | 'MICRO_FS_DEFAULT_ROOT_PATH' => '/tmp/micro/fs', |
||
| 29 | 'MICRO_FS_DEFAULT_LINK_HANDLING' => '1', |
||
| 30 | ], |
||
| 31 | [ |
||
| 32 | FilesystemLocalAdapterPlugin::class, |
||
| 33 | ] |
||
| 34 | ); |
||
| 35 | |||
| 36 | $kernel->run(); |
||
| 37 | /** @var FilesystemFacadeInterface $facade */ |
||
| 38 | $facade = $kernel->container()->get(FilesystemFacadeInterface::class); |
||
| 39 | $operator = $facade->createFsOperator('default'); |
||
| 40 | |||
| 41 | $location = 'temporary'; |
||
| 42 | $operator->write($location, 'success'); |
||
| 43 | $this->assertEquals('success', $operator->read($location)); |
||
| 44 | $operator->delete($location); |
||
| 45 | } |
||
| 47 |