File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Massaction Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,13 @@ public function testGetGridIdsJsonWithoutUseSelectAll()
132
132
public function testGetGridIdsJsonWithUseSelectAll (array $ items , $ result )
133
133
{
134
134
$ this ->_block ->setUseSelectAll (true );
135
- $ massActionIdField = $ this ->_block ->getParentBlock ()->getMassactionIdField ();
135
+
136
+ if ($ this ->_block ->getMassactionIdField ()) {
137
+ $ massActionIdField = $ this ->_block ->getMassactionIdField ();
138
+ } else {
139
+ $ massActionIdField = $ this ->_block ->getParentBlock ()->getMassactionIdField ();
140
+ }
141
+
136
142
$ collectionMock = $ this ->getMockBuilder (\Magento \Framework \Data \Collection::class)
137
143
->disableOriginalConstructor ()
138
144
->getMock ();
You can’t perform that action at this time.
0 commit comments