@@ -55,23 +55,28 @@ protected function setUp()
5555 {
5656 $ this ->persistentSessionMock = $ this ->createMock (\Magento \Persistent \Helper \Session::class);
5757 $ this ->sessionMock =
58- $ this ->createPartialMock (\Magento \Persistent \Model \Session::class, [
58+ $ this ->createPartialMock (
59+ \Magento \Persistent \Model \Session::class,
60+ [
5961 'setLoadInactive ' ,
6062 'setCustomerData ' ,
6163 'clearQuote ' ,
6264 'clearStorage ' ,
6365 'getQuote ' ,
6466 'removePersistentCookie ' ,
6567 '__wakeup ' ,
66- ]);
68+ ]
69+ );
6770 $ this ->persistentDataMock = $ this ->createMock (\Magento \Persistent \Helper \Data::class);
6871 $ this ->checkoutSessionMock = $ this ->createMock (\Magento \Checkout \Model \Session::class);
6972
7073 $ this ->abstractCollectionMock =
7174 $ this ->createMock (\Magento \Eav \Model \Entity \Collection \AbstractCollection::class);
7275
7376 $ this ->quoteRepositoryMock = $ this ->createMock (\Magento \Quote \Api \CartRepositoryInterface::class);
74- $ this ->quoteMock = $ this ->createPartialMock (\Magento \Quote \Model \Quote::class, [
77+ $ this ->quoteMock = $ this ->createPartialMock (
78+ \Magento \Quote \Model \Quote::class,
79+ [
7580 'getId ' ,
7681 'getIsPersistent ' ,
7782 'getPaymentsCollection ' ,
@@ -90,7 +95,8 @@ protected function setUp()
9095 'getIsActive ' ,
9196 'getCustomerId ' ,
9297 '__wakeup '
93- ]);
98+ ]
99+ );
94100
95101 $ this ->model = new QuoteManager (
96102 $ this ->persistentSessionMock ,
@@ -264,14 +270,16 @@ public function testConvertCustomerCartToGuest()
264270 ->method ('setIsPersistent ' )->with (false )->willReturn ($ this ->quoteMock );
265271 $ this ->quoteMock ->expects ($ this ->exactly (3 ))
266272 ->method ('getAddressesCollection ' )->willReturn ($ this ->abstractCollectionMock );
267- $ this ->abstractCollectionMock ->expects ($ this ->exactly (3 ))->method ('walk ' )->with ($ this ->logicalOr (
268- $ this ->equalTo ('setCustomerAddressId ' ),
269- $ this ->equalTo ($ addressArgs ),
270- $ this ->equalTo ('setCustomerId ' ),
271- $ this ->equalTo ($ customerIdArgs ),
272- $ this ->equalTo ('setEmail ' ),
273- $ this ->equalTo ($ emailArgs )
274- ));
273+ $ this ->abstractCollectionMock ->expects ($ this ->exactly (3 ))->method ('walk ' )->with (
274+ $ this ->logicalOr (
275+ $ this ->equalTo ('setCustomerAddressId ' ),
276+ $ this ->equalTo ($ addressArgs ),
277+ $ this ->equalTo ('setCustomerId ' ),
278+ $ this ->equalTo ($ customerIdArgs ),
279+ $ this ->equalTo ('setEmail ' ),
280+ $ this ->equalTo ($ emailArgs )
281+ )
282+ );
275283 $ this ->quoteMock ->expects ($ this ->once ())->method ('collectTotals ' )->willReturn ($ this ->quoteMock );
276284 $ this ->persistentSessionMock ->expects ($ this ->once ())
277285 ->method ('getSession ' )->willReturn ($ this ->sessionMock );
0 commit comments