@@ -32,7 +32,7 @@ public function getDependencyInfoDataProvider()
3232 '<element module="Magento\AnotherModule"/> ' ,
3333 [
3434 [
35- 'module ' => 'Magento\AnotherModule ' ,
35+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
3636 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_SOFT ,
3737 'source ' => '<element module="Magento\AnotherModule"/> ' ,
3838 ]
@@ -43,7 +43,7 @@ public function getDependencyInfoDataProvider()
4343 '<block class="Magento\AnotherModule\Several\Chunks"/> ' ,
4444 [
4545 [
46- 'module ' => 'Magento\AnotherModule ' ,
46+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
4747 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_HARD ,
4848 'source ' => '<block class="Magento\AnotherModule\Several\Chunks"/> ' ,
4949 ]
@@ -56,7 +56,7 @@ public function getDependencyInfoDataProvider()
5656 </any> ' ,
5757 [
5858 [
59- 'module ' => 'Magento\AnotherModule ' ,
59+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
6060 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_SOFT ,
6161 'source ' => '<block template="Magento_AnotherModule::template/path.phtml"/> ' ,
6262 ]
@@ -67,7 +67,7 @@ public function getDependencyInfoDataProvider()
6767 '<block>Magento\AnotherModule\Several\Chunks</block> ' ,
6868 [
6969 [
70- 'module ' => 'Magento\AnotherModule ' ,
70+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
7171 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_SOFT ,
7272 'source ' => '<block>Magento\AnotherModule\Several\Chunks</block> ' ,
7373 ]
@@ -78,7 +78,7 @@ public function getDependencyInfoDataProvider()
7878 '<template>Magento_AnotherModule::template/path.phtml</template> ' ,
7979 [
8080 [
81- 'module ' => 'Magento\AnotherModule ' ,
81+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
8282 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_SOFT ,
8383 'source ' => '<template>Magento_AnotherModule::template/path.phtml</template> ' ,
8484 ]
@@ -89,7 +89,7 @@ public function getDependencyInfoDataProvider()
8989 '<file>Magento_AnotherModule::file/path.txt</file> ' ,
9090 [
9191 [
92- 'module ' => 'Magento\AnotherModule ' ,
92+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
9393 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_SOFT ,
9494 'source ' => '<file>Magento_AnotherModule::file/path.txt</file> ' ,
9595 ]
@@ -100,7 +100,7 @@ public function getDependencyInfoDataProvider()
100100 '<any helper="Magento\AnotherModule\Several\Chunks::text"/> ' ,
101101 [
102102 [
103- 'module ' => 'Magento\AnotherModule ' ,
103+ 'modules ' => [ 'Magento\AnotherModule ' ] ,
104104 'type ' => \Magento \Test \Integrity \DependencyTest::TYPE_SOFT ,
105105 'source ' => '<any helper="Magento\AnotherModule\Several\Chunks::text"/> ' ,
106106 ]
@@ -120,7 +120,7 @@ public function testUpdatesRouterGetDependencyInfo($contents, $type)
120120 $ model = new LayoutRule (['router_name ' => ['Magento\RouterModule ' ]], [], []);
121121 $ this ->assertEquals ([], $ model ->getDependencyInfo ('Magento\RouterModule ' , 'layout ' , 'any ' , $ contents ));
122122 $ this ->assertEquals (
123- [['module ' => 'Magento\RouterModule ' , 'type ' => $ type , 'source ' => 'router_name_action ' ]],
123+ [['modules ' => [ 'Magento\RouterModule ' ] , 'type ' => $ type , 'source ' => 'router_name_action ' ]],
124124 $ model ->getDependencyInfo ('Magento\AnotherModule ' , 'layout ' , 'any ' , $ contents )
125125 );
126126 }
@@ -148,11 +148,11 @@ public function testLayoutGetDependencyInfo($contents, $type, $isHandle)
148148 $ model ->getDependencyInfo ('Magento\DefaultHandleModule ' , 'layout ' , 'any ' , $ contents )
149149 );
150150 $ this ->assertEquals (
151- [['module ' => 'Magento\DefaultHandleModule ' , 'type ' => $ type , 'source ' => 'singlechunk ' ]],
151+ [['modules ' => [ 'Magento\DefaultHandleModule ' ] , 'type ' => $ type , 'source ' => 'singlechunk ' ]],
152152 $ model ->getDependencyInfo ('any ' , 'layout ' , 'any ' , $ contents )
153153 );
154154 $ this ->assertEquals (
155- [['module ' => 'Magento\AnyHandleModule ' , 'type ' => $ type , 'source ' => 'any_handle_name ' ]],
155+ [['modules ' => [ 'Magento\AnyHandleModule ' ] , 'type ' => $ type , 'source ' => 'any_handle_name ' ]],
156156 $ model ->getDependencyInfo ('any ' , 'layout ' , 'path/frontend/file.txt ' , $ contents )
157157 );
158158 // test several modules
@@ -166,7 +166,7 @@ public function testLayoutGetDependencyInfo($contents, $type, $isHandle)
166166 ];
167167 $ model = $ isHandle ? new LayoutRule ([], [], $ data ) : new LayoutRule ([], $ data , []);
168168 $ this ->assertEquals (
169- [['module ' => 'Magento\Theme ' , 'type ' => $ type , 'source ' => 'any_handle_name ' ]],
169+ [['modules ' => [ 'Magento\Theme ' ] , 'type ' => $ type , 'source ' => 'any_handle_name ' ]],
170170 $ model ->getDependencyInfo ('any ' , 'layout ' , 'path/frontend/file.txt ' , $ contents )
171171 );
172172 $ this ->assertEquals (
0 commit comments