Skip to content

Commit

Permalink
Update the getField in the testGetList to be called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
dmanners committed Nov 4, 2017
1 parent 2a3ac2d commit e9339ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function testGetList()
$filterMock = $this->getMock('\Magento\Framework\Api\Filter', [], [], '', false);
$filterGroupMock->expects($this->exactly(2))->method('getFilters')->willReturn([$filterMock]);

$filterMock->expects($this->once())->method('getField')->willReturn('entity_type_code');
$filterMock->expects($this->exactly(2))->method('getField')->willReturn('entity_type_code');
$filterMock->expects($this->once())->method('getValue')->willReturn($entityTypeCode);

$collectionMock = $this->getMock(
Expand Down

0 comments on commit e9339ca

Please sign in to comment.