/** * @param array $storageConfiguration * @param string $path * @param int $expectedStorageId * @test * @dataProvider storageDetectionDataProvider */ public function findBestMatchingStorageByLocalPathReturnsDefaultStorageIfNoMatchIsFound(array $storageConfiguration, $path, $expectedStorageId) { $this->subject->_set('localDriverStorageCache', $storageConfiguration); $this->assertSame($expectedStorageId, $this->subject->_callRef('findBestMatchingStorageByLocalPath', $path)); }