20 $directory = $this->createMock(\
Magento\Framework\
Filesystem\Directory\Read::class);
22 $iteratorFactory = $this->createPartialMock(\
Magento\Framework\
Config\FileIteratorFactory::class, [
'create']);
31 $this->returnValue($directory)
34 $directory->expects($this->once())->method(
'search')->will($this->returnValue(
$fileList));
36 $iteratorFactory->expects($this->once())->method(
'create')->will($this->returnValue(
true));
38 $model = new \Magento\Framework\App\Arguments\FileResolver\Primary(
$filesystem, $iteratorFactory);
40 $this->assertTrue(
$model->get($filename, $scope));
48 return [[[
'config/di.xml',
'config/some_config/di.xml'],
'primary',
'di.xml']];
testGet(array $fileList, $scope, $filename)