@@ -77,19 +77,12 @@ public function testSaveAddressInformation()
77
77
$ quoteId = '100 ' ;
78
78
$ addressInformationMock = $ this ->getMockForAbstractClass (ShippingInformationInterface::class);
79
79
$ shippingAddressMock = $ this ->getMockForAbstractClass (AddressInterface::class);
80
- $ billingAddressMock = $ this ->getMockForAbstractClass (AddressInterface::class);
81
80
$ addressInformationMock ->expects ($ this ->once ())
82
81
->method ('getShippingAddress ' )
83
82
->willReturn ($ shippingAddressMock );
84
- $ addressInformationMock ->expects ($ this ->once ())
85
- ->method ('getBillingAddress ' )
86
- ->willReturn ($ billingAddressMock );
87
83
$ shippingAddressMock ->expects ($ this ->once ())
88
84
->method ('getExtensionAttributes ' )
89
85
->willReturn (null );
90
- $ billingAddressMock ->expects ($ this ->once ())
91
- ->method ('getExtensionAttributes ' )
92
- ->willReturn (null );
93
86
$ customerAddressMock = $ this ->createMock (Address::class);
94
87
$ this ->addressFactoryMock ->expects ($ this ->once ())
95
88
->method ('create ' )
@@ -99,7 +92,7 @@ public function testSaveAddressInformation()
99
92
->method ('createValidator ' )
100
93
->with ('customer_address ' , 'save ' )
101
94
->willReturn ($ validatorMock );
102
- $ validatorMock ->expects ($ this ->exactly ( 2 ))->method ('isValid ' )->willReturn (true );
95
+ $ validatorMock ->expects ($ this ->once ( ))->method ('isValid ' )->willReturn (true );
103
96
$ quoteIdMaskMock = $ this ->getMockBuilder (QuoteIdMask::class)
104
97
->addMethods (['getQuoteId ' ])
105
98
->onlyMethods (['load ' ])
0 commit comments