Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | public function testAbstraction() |
||
24 | { |
||
25 | $pubPath = '/path/to/public'; |
||
26 | $appCfg = $this->createMock(ApplicationConfigurationInterface::class); |
||
27 | $appCfg |
||
28 | ->expects($this->once()) |
||
29 | ->method('get') |
||
30 | ->with('MICRO_FS_TEST_PUBLIC_URL') |
||
31 | ->willReturn($pubPath); |
||
32 | |||
33 | $cfg = new AbstractFilesystemAdapterConfigurationTestPlugin($appCfg, 'test'); |
||
34 | |||
35 | $this->assertInstanceOf(FilesystemAdapterConfigurationInterface::class, $cfg); |
||
36 | $this->assertEquals($pubPath, $cfg->getPublicUrl()); |
||
37 | } |
||
43 |