Skip to content

Commit 6a87c46

Browse files
author
olysenko
committed
MAGETWO-63716: Add target to admin menu element
1 parent 12b3d3d commit 6a87c46

File tree

1 file changed

+4
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Backend/Model

1 file changed

+4
-2
lines changed

dev/tests/integration/testsuite/Magento/Backend/Model/MenuTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testSerialize()
117117
$expected = '[{"parent_id":null,"module_name":"Magento_Backend","sort_index":null,"depends_on_config":null,'
118118
. '"id":"Magento_Backend::system3","resource":"Magento_Backend::system3","path":"","action":null,'
119119
. '"depends_on_module":null,"tooltip":"","title":"Extended System",'
120-
. '"sub_menu":[{"parent_id":null,"module_name":"Magento_Backend","sort_index":null,'
120+
. '"target":null,"sub_menu":[{"parent_id":null,"module_name":"Magento_Backend","sort_index":null,'
121121
. '"depends_on_config":null,"id":"Magento_Backend::system3_acl","resource":"Magento_Backend::system3_acl",'
122122
. '"path":"","action":"admin\/backend\/acl\/index","depends_on_module":null,"tooltip":"","title":"Acl",'
123123
. '"target":null,"sub_menu":null}]}]';
@@ -132,7 +132,7 @@ public function testUnserialize()
132132
$serializedMenu = '[{"parent_id":null,"module_name":"Magento_Backend","sort_index":null,'
133133
. '"depends_on_config":null,"id":"Magento_Backend::system3","resource":"Magento_Backend::system3",'
134134
. '"path":"","action":null,"depends_on_module":null,"tooltip":"","title":"Extended System",'
135-
. '"sub_menu":[{"parent_id":null,"module_name":"Magento_Backend","sort_index":null,'
135+
. '"target":null,"sub_menu":[{"parent_id":null,"module_name":"Magento_Backend","sort_index":null,'
136136
. '"depends_on_config":null,"id":"Magento_Backend::system3_acl","resource":"Magento_Backend::system3_acl",'
137137
. '"path":"","action":"admin\/backend\/acl\/index","depends_on_module":null,"tooltip":"","title":"Acl",'
138138
. '"target":null,"sub_menu":null}]}]';
@@ -152,6 +152,7 @@ public function testUnserialize()
152152
'depends_on_module' => null,
153153
'tooltip' => '',
154154
'title' => 'Extended System',
155+
'target' => null,
155156
'sub_menu' =>
156157
[
157158
[
@@ -167,6 +168,7 @@ public function testUnserialize()
167168
'tooltip' => '',
168169
'title' => 'Acl',
169170
'sub_menu' => null,
171+
'target' => null
170172
],
171173
],
172174
],

0 commit comments

Comments
 (0)