From f599252df0ea10902796fe8c5654dd7ac9b8a3d6 Mon Sep 17 00:00:00 2001 From: Minesh Patel Date: Sat, 20 May 2017 12:12:12 +0530 Subject: [PATCH] Travis CI Fixed For issue #9610 --- .../Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php b/app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php index d8ecfc14d2697..1b9f57153c33c 100644 --- a/app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php +++ b/app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/MassactionTest.php @@ -237,6 +237,7 @@ public function testGetGridIdsJsonWithoutUseSelectAll() public function testGetGridIdsJsonWithUseSelectAll(array $items, $result) { $this->_block->setUseSelectAll(true); + $massActionIdField = $this->_block->getParentBlock()->getMassactionIdField(); $collectionMock = $this->getMockBuilder(\Magento\Framework\Data\Collection::class) ->disableOriginalConstructor() @@ -254,7 +255,8 @@ public function testGetGridIdsJsonWithUseSelectAll(array $items, $result) ->with(0) ->willReturnSelf(); $collectionMock->expects($this->once()) - ->method('getAllIds') + ->method('getColumnValues') + ->with($massActionIdField) ->willReturn($items); $this->assertEquals($result, $this->_block->getGridIdsJson());