@@ -90,6 +90,7 @@ protected function setUp()
90
90
\Magento \Quote \Model \Quote::class,
91
91
[
92
92
'load ' ,
93
+ 'loadByIdWithoutStore ' ,
93
94
'loadByCustomer ' ,
94
95
'getIsActive ' ,
95
96
'getId ' ,
@@ -169,7 +170,7 @@ public function testGetWithExceptionById()
169
170
$ this ->storeMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (1 );
170
171
$ this ->quoteMock ->expects ($ this ->never ())->method ('setSharedStoreIds ' );
171
172
$ this ->quoteMock ->expects ($ this ->once ())
172
- ->method ('load ' )
173
+ ->method ('loadByIdWithoutStore ' )
173
174
->with ($ cartId )
174
175
->willReturn ($ this ->storeMock );
175
176
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (false );
@@ -193,7 +194,7 @@ public function testGet()
193
194
$ this ->quoteMock ->expects (static ::never ())
194
195
->method ('setSharedStoreIds ' );
195
196
$ this ->quoteMock ->expects (static ::once ())
196
- ->method ('load ' )
197
+ ->method ('loadByIdWithoutStore ' )
197
198
->with ($ cartId )
198
199
->willReturn ($ this ->storeMock );
199
200
$ this ->quoteMock ->expects (static ::once ())
@@ -226,7 +227,7 @@ public function testGetForCustomerAfterGet()
226
227
$ this ->quoteMock ->expects (static ::never ())
227
228
->method ('setSharedStoreIds ' );
228
229
$ this ->quoteMock ->expects (static ::once ())
229
- ->method ('load ' )
230
+ ->method ('loadByIdWithoutStore ' )
230
231
->with ($ cartId )
231
232
->willReturn ($ this ->storeMock );
232
233
$ this ->quoteMock ->expects (static ::once ())
@@ -260,7 +261,7 @@ public function testGetWithSharedStoreIds()
260
261
->with ($ sharedStoreIds )
261
262
->willReturnSelf ();
262
263
$ this ->quoteMock ->expects ($ this ->once ())
263
- ->method ('load ' )
264
+ ->method ('loadByIdWithoutStore ' )
264
265
->with ($ cartId )
265
266
->willReturn ($ this ->storeMock );
266
267
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ cartId );
@@ -318,7 +319,7 @@ public function testGetActiveWithExceptionById()
318
319
$ this ->storeMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (1 );
319
320
$ this ->quoteMock ->expects ($ this ->never ())->method ('setSharedStoreIds ' );
320
321
$ this ->quoteMock ->expects ($ this ->once ())
321
- ->method ('load ' )
322
+ ->method ('loadByIdWithoutStore ' )
322
323
->with ($ cartId )
323
324
->willReturn ($ this ->storeMock );
324
325
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (false );
@@ -340,7 +341,7 @@ public function testGetActiveWithExceptionByIsActive()
340
341
$ this ->storeMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (1 );
341
342
$ this ->quoteMock ->expects ($ this ->never ())->method ('setSharedStoreIds ' );
342
343
$ this ->quoteMock ->expects ($ this ->once ())
343
- ->method ('load ' )
344
+ ->method ('loadByIdWithoutStore ' )
344
345
->with ($ cartId )
345
346
->willReturn ($ this ->storeMock );
346
347
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ cartId );
@@ -363,7 +364,7 @@ public function testGetActive()
363
364
$ this ->storeMock ->expects ($ this ->once ())->method ('getId ' )->willReturn (1 );
364
365
$ this ->quoteMock ->expects ($ this ->never ())->method ('setSharedStoreIds ' );
365
366
$ this ->quoteMock ->expects ($ this ->once ())
366
- ->method ('load ' )
367
+ ->method ('loadByIdWithoutStore ' )
367
368
->with ($ cartId )
368
369
->willReturn ($ this ->storeMock );
369
370
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ cartId );
@@ -390,7 +391,7 @@ public function testGetActiveWithSharedStoreIds()
390
391
->with ($ sharedStoreIds )
391
392
->willReturnSelf ();
392
393
$ this ->quoteMock ->expects ($ this ->once ())
393
- ->method ('load ' )
394
+ ->method ('loadByIdWithoutStore ' )
394
395
->with ($ cartId )
395
396
->willReturn ($ this ->storeMock );
396
397
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ cartId );
@@ -449,7 +450,7 @@ public function testSave()
449
450
$ this ->quoteMock ->expects ($ this ->once ())->method ('getId ' )->willReturn ($ cartId );
450
451
$ this ->quoteMock ->expects ($ this ->once ())->method ('setSharedStoreIds ' );
451
452
$ this ->quoteMock ->expects ($ this ->once ())
452
- ->method ('load ' )
453
+ ->method ('loadByIdWithoutStore ' )
453
454
->with ($ cartId )
454
455
->willReturn ($ this ->storeMock );
455
456
$ this ->loadHandlerMock ->expects ($ this ->once ())
0 commit comments