We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a5d880 commit 1f77bd1Copy full SHA for 1f77bd1
app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php
@@ -237,7 +237,12 @@ public function testGetGridIdsJsonWithoutUseSelectAll()
237
public function testGetGridIdsJsonWithUseSelectAll(array $items, $result)
238
{
239
$this->_block->setUseSelectAll(true);
240
- $massActionIdField = $this->_block->getParentBlock()->getMassactionIdField();
+
241
+ if($this->_block->getMassactionIdField()) {
242
+ $massActionIdField = $this->_block->getMassactionIdField();
243
+ } else {
244
+ $massActionIdField = $this->_block->getParentBlock()->getMassactionIdField();
245
+ }
246
247
$collectionMock = $this->getMockBuilder(\Magento\Framework\Data\Collection::class)
248
->disableOriginalConstructor()
0 commit comments