Skip to content

Commit

Permalink
Travis CI Fixed For issue #9610
Browse files Browse the repository at this point in the history
  • Loading branch information
minesh0111 authored May 20, 2017
1 parent d8ad06b commit f599252
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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());
Expand Down

0 comments on commit f599252

Please sign in to comment.