File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Observer/Frontend/Quote/Address
Test/Unit/Observer/Frontend/Quote/Address Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
use Magento \Framework \Event \ObserverInterface ;
9
9
10
+ /**
11
+ * Handle customer VAT number on collect_totals_before event of quote address.
12
+ *
13
+ * @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
14
+ */
10
15
class CollectTotalsObserver implements ObserverInterface
11
16
{
12
17
/**
Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ public function testDispatchWithCustomerCountryNotInEUAndNotLoggedCustomerInGrou
199
199
->method ('getNotLoggedInGroup ' )
200
200
->will ($ this ->returnValue ($ this ->groupInterfaceMock ));
201
201
$ this ->groupInterfaceMock ->expects ($ this ->once ())
202
- ->method ('getId ' )->will ($ this ->returnValue (0 ));
202
+ ->method ('getId ' )->will ($ this ->returnValue (null ));
203
203
$ this ->vatValidatorMock ->expects ($ this ->once ())
204
204
->method ('isEnabled ' )
205
205
->with ($ this ->quoteAddressMock , $ this ->storeId )
@@ -220,9 +220,6 @@ public function testDispatchWithCustomerCountryNotInEUAndNotLoggedCustomerInGrou
220
220
$ this ->returnValue (false )
221
221
);
222
222
223
- $ groupMock = $ this ->getMockBuilder (\Magento \Customer \Api \Data \GroupInterface::class)
224
- ->disableOriginalConstructor ()
225
- ->getMock ();
226
223
$ this ->customerMock ->expects ($ this ->once ())->method ('getId ' )->will ($ this ->returnValue (null ));
227
224
228
225
/** Assertions */
You can’t perform that action at this time.
0 commit comments