This repository was archived by the owner on Apr 29, 2019. It is now read-only.
File tree 2 files changed +12
-2
lines changed
Test/Unit/Ui/DataProvider/Product/Form/Modifier
Ui/DataProvider/Product/Form/Modifier
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,16 @@ public function testModifyMeta()
154
154
->method ('getAll ' )
155
155
->willReturn ([]);
156
156
157
- $ this ->assertArrayHasKey (CustomOptions::GROUP_CUSTOM_OPTIONS_NAME , $ this ->getModel ()->modifyMeta ([]));
157
+ $ meta = $ this ->getModel ()->modifyMeta ([]);
158
+
159
+ $ this ->assertArrayHasKey (CustomOptions::GROUP_CUSTOM_OPTIONS_NAME , $ meta );
160
+
161
+ $ buttonAdd = $ meta ['custom_options ' ]['children ' ]['container_header ' ]['children ' ]['button_add ' ];
162
+ $ buttonAddTargetName = $ buttonAdd ['arguments ' ]['data ' ]['config ' ]['actions ' ][0 ]['targetName ' ];
163
+ $ expectedTargetName = '${ $.ns }.${ $.ns }. ' . CustomOptions::GROUP_CUSTOM_OPTIONS_NAME
164
+ . '. ' . CustomOptions::GRID_OPTIONS_NAME ;
165
+
166
+ $ this ->assertEquals ($ expectedTargetName , $ buttonAddTargetName );
158
167
}
159
168
160
169
/**
Original file line number Diff line number Diff line change @@ -348,7 +348,8 @@ protected function getHeaderContainerConfig($sortOrder)
348
348
'sortOrder ' => 20 ,
349
349
'actions ' => [
350
350
[
351
- 'targetName ' => 'ns = ${ $.ns }, index = ' . static ::GRID_OPTIONS_NAME ,
351
+ 'targetName ' => '${ $.ns }.${ $.ns }. ' . static ::GROUP_CUSTOM_OPTIONS_NAME
352
+ . '. ' . static ::GRID_OPTIONS_NAME ,
352
353
'actionName ' => 'processingAddChild ' ,
353
354
]
354
355
]
You can’t perform that action at this time.
0 commit comments