Skip to content

Commit 1f77bd1

Browse files
authored
Fixed Index Management Select all
1 parent 9a5d880 commit 1f77bd1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,12 @@ public function testGetGridIdsJsonWithoutUseSelectAll()
237237
public function testGetGridIdsJsonWithUseSelectAll(array $items, $result)
238238
{
239239
$this->_block->setUseSelectAll(true);
240-
$massActionIdField = $this->_block->getParentBlock()->getMassactionIdField();
240+
241+
if($this->_block->getMassactionIdField()) {
242+
$massActionIdField = $this->_block->getMassactionIdField();
243+
} else {
244+
$massActionIdField = $this->_block->getParentBlock()->getMassactionIdField();
245+
}
241246

242247
$collectionMock = $this->getMockBuilder(\Magento\Framework\Data\Collection::class)
243248
->disableOriginalConstructor()

0 commit comments

Comments
 (0)