File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
app/code/Magento/Quote/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ public function testValidateAddressesNotSavedInAddressBook()
269
269
{
270
270
$ this ->expectException (ValidatorException::class);
271
271
$ this ->quoteMock ->method ('getCustomerIsGuest ' )->willReturn (true );
272
+ $ this ->quoteAddressMock ->expects ($ this ->any ())->method ('getCustomerAddressId ' )->willReturn (2 );
272
273
$ this ->quoteAddressMock ->method ('getStreet ' )->willReturn (['test ' ]);
273
274
$ this ->quoteAddressMock ->method ('getCustomAttributes ' )->willReturn (['test ' ]);
274
275
$ this ->customerAddressFactoryMock ->method ('create ' )
@@ -278,14 +279,13 @@ public function testValidateAddressesNotSavedInAddressBook()
278
279
->getMock ();
279
280
$ this ->addressFactoryMock ->expects ($ this ->exactly (1 ))->method ('create ' )->willReturn ($ addressMock );
280
281
$ this ->quoteMock
281
- ->expects ($ this ->atMost ( 2 ))
282
+ ->expects ($ this ->any ( ))
282
283
->method ('getBillingAddress ' )
283
284
->willReturn ($ this ->quoteAddressMock );
284
285
$ this ->quoteMock
285
- ->expects ($ this ->once ())
286
+ ->expects ($ this ->any ())
286
287
->method ('getShippingAddress ' )
287
288
->willReturn ($ this ->quoteAddressMock );
288
- $ this ->quoteAddressMock ->expects ($ this ->any ())->method ('getCustomerAddressId ' )->willReturn (null );
289
289
$ validatorMock = $ this ->getMockBuilder (Validator::class)
290
290
->disableOriginalConstructor ()
291
291
->getMock ();
You can’t perform that action at this time.
0 commit comments