Skip to content

Commit fa9b420

Browse files
Update Code
1 parent 2f42295 commit fa9b420

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Customer/Test/Unit/Block/Address

1 file changed

+2
-1
lines changed

app/code/Magento/Customer/Test/Unit/Block/Address/GridTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function testGetAdditionalAddresses()
138138
/** @var \PHPUnit_Framework_MockObject_MockObject */
139139
$addressCollection = $this->getMockBuilder(\Magento\Customer\Model\ResourceModel\Address\Collection::class)
140140
->disableOriginalConstructor()
141-
->setMethods(['setOrder', 'setCustomerFilter', 'load', 'getIterator'])
141+
->setMethods(['setOrder', 'setCustomerFilter', 'load', 'getIterator','addFieldToFilter'])
142142
->getMock();
143143
$addressDataModel = $this->getMockForAbstractClass(\Magento\Customer\Api\Data\AddressInterface::class);
144144
$address = $this->getMockBuilder(\Magento\Customer\Model\Address::class)
@@ -158,6 +158,7 @@ public function testGetAdditionalAddresses()
158158
->willReturnSelf();
159159
$addressCollection->expects($this->atLeastOnce())->method('setCustomerFilter')->with([$customerId])
160160
->willReturnSelf();
161+
$addressCollection->expects(static::any())->method('addFieldToFilter')->willReturnSelf();
161162
$addressCollection->expects($this->atLeastOnce())->method('getIterator')
162163
->willReturn(new \ArrayIterator($collection));
163164
$this->addressCollectionFactory->expects($this->atLeastOnce())->method('create')

0 commit comments

Comments
 (0)