17 protected function setUp()
24 $xmlFiles = $fileIteratorFactory->create(
25 $moduleDirSearch->collectFiles(
27 'etc/{*/product_options.xml,product_options.xml}' 31 $fileResolverMock = $this->createMock(\
Magento\Framework\
Config\FileResolverInterface::class);
32 $fileResolverMock->expects($this->any())->method(
'get')->will($this->returnValue($xmlFiles));
33 $validationStateMock = $this->createMock(\
Magento\Framework\
Config\ValidationStateInterface::class);
34 $validationStateMock->expects($this->any())->method(
'isValidationRequired')->will($this->returnValue(
true));
38 [
'fileResolver' => $fileResolverMock,
'validationState' => $validationStateMock]
44 $this->_model->read(
'global');
testProductOptionsXmlFiles()
static getObjectManager()