File tree Expand file tree Collapse file tree 5 files changed +6
-15
lines changed
dev/tests/integration/testsuite/Magento/Test/Integrity
lib/internal/Magento/Framework/App/Utility Expand file tree Collapse file tree 5 files changed +6
-15
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Test \Integrity \Modular ;
7
7
8
- use Magento \Framework \App \Filesystem \DirectoryList ;
9
8
10
9
class AclConfigFilesTest extends \PHPUnit_Framework_TestCase
11
10
{
Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ public function linearFilesProvider()
92
92
93
93
$ output = [];
94
94
foreach ($ common as $ path => $ file ) {
95
- $ output [$ path ] = [$ file ];
95
+ $ output [substr ( $ path, strlen ( BP )) ] = [$ file ];
96
96
}
97
97
98
98
return $ output ;
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Test \Integrity \Modular ;
7
7
8
- use Magento \Framework \App \Filesystem \DirectoryList ;
9
8
use Magento \Framework \Filesystem ;
10
9
11
10
class IndexerConfigFilesTest extends \PHPUnit_Framework_TestCase
@@ -51,13 +50,6 @@ public function testIndexerConfigFile($file)
51
50
*/
52
51
public function indexerConfigFileDataProvider ()
53
52
{
54
- /** @var Filesystem $filesystem */
55
- $ utilityFiles = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
56
- ->get ('\Magento\Framework\App\Utility\Files ' );
57
-
58
- $ utilityFiles ->getConfigFiles ('indexer.xml ' );
59
-
60
- $ dataProviderResult = $ utilityFiles ->getConfigFiles ('indexer.xml ' );
61
- return $ dataProviderResult ;
53
+ return \Magento \Framework \App \Utility \Files::init ()->getConfigFiles ('indexer.xml ' );
62
54
}
63
55
}
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public function viewConfigFileDataProvider()
36
36
->get ('Magento\Framework\Component\DirSearch ' );
37
37
$ files = $ componentDirSearch ->collectFiles (ComponentRegistrar::THEME , 'etc/view.xml ' );
38
38
foreach ($ files as $ file ) {
39
- $ result [$ file ] = [$ file ];
39
+ $ result [substr ( $ file, strlen ( BP )) ] = [$ file ];
40
40
}
41
41
return $ result ;
42
42
}
@@ -60,7 +60,7 @@ public function themeConfigFileExistsDataProvider()
60
60
$ componentRegistrar = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
61
61
->get ('\Magento\Framework\Component\ComponentRegistrar ' );
62
62
foreach ($ componentRegistrar ->getPaths (ComponentRegistrar::THEME ) as $ themeDir ) {
63
- $ result [$ themeDir ] = [$ themeDir ];
63
+ $ result [substr ( $ themeDir, strlen ( BP )) ] = [$ themeDir ];
64
64
}
65
65
return $ result ;
66
66
}
@@ -102,7 +102,7 @@ public function themeConfigFileDataProvider()
102
102
->get ('Magento\Framework\Component\DirSearch ' );
103
103
$ files = $ componentDirSearch ->collectFiles (ComponentRegistrar::THEME , 'theme.xml ' );
104
104
foreach ($ files as $ file ) {
105
- $ result [$ file ] = [$ file ];
105
+ $ result [substr ( $ file, strlen ( BP )) ] = [$ file ];
106
106
}
107
107
return $ result ;
108
108
}
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ public static function composeDataSets(array $files)
106
106
{
107
107
$ result = [];
108
108
foreach ($ files as $ file ) {
109
- $ result [$ file ] = [$ file ];
109
+ $ result [substr ( $ file, strlen ( BP )) ] = [$ file ];
110
110
}
111
111
return $ result ;
112
112
}
You can’t perform that action at this time.
0 commit comments