File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
app/code/Magento/Customer/Test/Unit/Block/Address Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ public function testGetChildHtml()
93
93
/** @var \PHPUnit_Framework_MockObject_MockObject */
94
94
$ addressCollection = $ this ->getMockBuilder (\Magento \Customer \Model \ResourceModel \Address \Collection::class)
95
95
->disableOriginalConstructor ()
96
- ->setMethods (['setOrder ' , 'setCustomerFilter ' , 'load ' ])
96
+ ->setMethods (['setOrder ' , 'setCustomerFilter ' , 'load ' , ' addFieldToFilter ' ])
97
97
->getMock ();
98
98
99
99
$ layout ->expects ($ this ->atLeastOnce ())->method ('getChildName ' )->with ('NameInLayout ' , 'pager ' )
@@ -108,6 +108,7 @@ public function testGetChildHtml()
108
108
->willReturnSelf ();
109
109
$ addressCollection ->expects ($ this ->atLeastOnce ())->method ('setCustomerFilter ' )->with ([$ customerId ])
110
110
->willReturnSelf ();
111
+ $ addressCollection ->expects (static ::any ())->method ('addFieldToFilter ' )->willReturnSelf ();
111
112
$ this ->addressCollectionFactory ->expects ($ this ->atLeastOnce ())->method ('create ' )
112
113
->willReturn ($ addressCollection );
113
114
$ block ->expects ($ this ->atLeastOnce ())->method ('setCollection ' )->with ($ addressCollection )->willReturnSelf ();
You can’t perform that action at this time.
0 commit comments