/** * Get filesystem adapter by key * * @param string $key * * @return \League\Flysystem\FilesystemInterface */ protected function getFilesystem(PropertyMapping $mapping) { return $this->mountManager->getFilesystem($mapping->getUploadDestination()); }
/** * @expectedException InvalidArgumentException * @dataProvider getInvalidDomains */ public function testSetUsingAnInvalidDomain($name) { $map = new FilesystemMap(); $map->set($name, $this->getFilesystemMock()); }