public function testCreateFilesystemDriverPool() { $driverClass = get_class($this->getMockForAbstractClass('Magento\\Framework\\Filesystem\\DriverInterface')); $result = Bootstrap::createFilesystemDriverPool([Bootstrap::INIT_PARAM_FILESYSTEM_DRIVERS => ['custom' => $driverClass]]); /** @var \Magento\Framework\Filesystem\DriverPool $result */ $this->assertInstanceOf('Magento\\Framework\\Filesystem\\DriverPool', $result); $this->assertInstanceof($driverClass, $result->getDriver('custom')); }