Skip to content

Commit

Permalink
Updated code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dharmeshvaja91 committed Mar 11, 2019
1 parent be076d5 commit 2f42295
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function testGetChildHtml()
/** @var \PHPUnit_Framework_MockObject_MockObject */
$addressCollection = $this->getMockBuilder(\Magento\Customer\Model\ResourceModel\Address\Collection::class)
->disableOriginalConstructor()
->setMethods(['setOrder', 'setCustomerFilter', 'load'])
->setMethods(['setOrder', 'setCustomerFilter', 'load','addFieldToFilter'])
->getMock();

$layout->expects($this->atLeastOnce())->method('getChildName')->with('NameInLayout', 'pager')
Expand All @@ -108,6 +108,7 @@ public function testGetChildHtml()
->willReturnSelf();
$addressCollection->expects($this->atLeastOnce())->method('setCustomerFilter')->with([$customerId])
->willReturnSelf();
$addressCollection->expects(static::any())->method('addFieldToFilter')->willReturnSelf();
$this->addressCollectionFactory->expects($this->atLeastOnce())->method('create')
->willReturn($addressCollection);
$block->expects($this->atLeastOnce())->method('setCollection')->with($addressCollection)->willReturnSelf();
Expand Down

0 comments on commit 2f42295

Please sign in to comment.