public function testInitWithComponent() { $this->destroyApplication(); $this->mockApplication(['components' => ['fs' => ['class' => 'creocoder\\flysystem\\LocalFilesystem', 'path' => sys_get_temp_dir()]]]); $storage = new Storage(['filesystemComponent' => 'fs']); $this->assertNotNull($storage->getFilesystem()); $this->assertInstanceOf("creocoder\\flysystem\\LocalFilesystem", $storage->getFilesystem()); }