@@ -27,12 +27,12 @@ public function setUp()
27
27
$ filesMock ->expects ($ this ->at (1 ))
28
28
->method ('getXmlCatalogFiles ' )
29
29
->will ($ this ->returnValue ([]));
30
- $ urnResolverMock = $ this ->getMock ('\Magento\Framework\Config\Dom\UrnResolver ' , [], [], '' , false );
30
+ $ urnResolverMock = $ this ->getMock ('\Magento\Framework\Config\Dom\UrnResolver ' , [], [], '' , false );
31
31
$ urnResolverMock ->expects ($ this ->once ())
32
32
->method ('getRealPath ' )
33
33
->with ($ this ->equalTo ('urn:magento:framework:Module/etc/module.xsd ' ))
34
34
->will ($ this ->returnValue ($ fixtureXmlFile ));
35
- $ phpstormFormatMock = $ this ->getMock ('\Magento\Developer\Model\XmlCatalog\Format\PhpStorm ' , [], [], '' , false );
35
+ $ phpstormFormatMock = $ this ->getMock ('\Magento\Developer\Model\XmlCatalog\Format\PhpStorm ' , [], [], '' , false );
36
36
$ phpstormFormatMock ->expects ($ this ->once ())
37
37
->method ('generateCatalog ' )
38
38
->with (
@@ -41,8 +41,8 @@ public function setUp()
41
41
)->will ($ this ->returnValue (null ));
42
42
43
43
$ formats = ['phpstorm ' => $ phpstormFormatMock ];
44
- $ filesystem = $ this ->getMock ('Magento\Framework\Filesystem ' , [], [], '' , false );
45
- $ readDirMock = $ this ->getMock ('\Magento\Framework\Filesystem\Directory\ReadInterface ' , [], [], '' , false );
44
+ $ filesystem = $ this ->getMock ('Magento\Framework\Filesystem ' , [], [], '' , false );
45
+ $ readDirMock = $ this ->getMock ('\Magento\Framework\Filesystem\Directory\ReadInterface ' , [], [], '' , false );
46
46
47
47
$ content = file_get_contents ($ fixtureXmlFile );
48
48
@@ -58,12 +58,12 @@ public function setUp()
58
58
->method ('getDirectoryRead ' )
59
59
->will ($ this ->returnValue ($ readDirMock ));
60
60
61
- $ currDirMock = $ this ->getMock ('\Magento\Framework\Filesystem\Directory\ReadInterface ' , [], [], '' , false );
61
+ $ currDirMock = $ this ->getMock ('\Magento\Framework\Filesystem\Directory\ReadInterface ' , [], [], '' , false );
62
62
$ currDirMock ->expects ($ this ->once ())
63
63
->method ('getAbsolutePath ' )
64
64
->with ($ this ->equalTo ('test ' ))
65
65
->will ($ this ->returnValue ('test_absolute_path ' ));
66
- $ readDirFactory = $ this ->getMock ('\Magento\Framework\Filesystem\Directory\ReadFactory ' , [], [], '' , false );
66
+ $ readDirFactory = $ this ->getMock ('\Magento\Framework\Filesystem\Directory\ReadFactory ' , [], [], '' , false );
67
67
$ readDirFactory ->expects ($ this ->once ())
68
68
->method ('create ' )
69
69
->will ($ this ->returnValue ($ currDirMock ));
@@ -83,4 +83,4 @@ public function testExecuteBadType()
83
83
$ commandTester ->execute ([XmlCatalogGenerateCommand::IDE_FILE_PATH_ARGUMENT => 'test ' ]);
84
84
$ this ->assertEquals ('' , $ commandTester ->getDisplay ());
85
85
}
86
- }
86
+ }
0 commit comments