@@ -180,7 +180,7 @@ protected function setUp(): void
180
180
*/
181
181
public function testAbsentLinkId (): void
182
182
{
183
- $ this ->objectManager ->expects ($ this ->once ())
183
+ $ this ->objectManager ->expects ($ this ->never ())
184
184
->method ('get ' )
185
185
->with (Session::class)
186
186
->willReturn ($ this ->session );
@@ -229,8 +229,8 @@ public function testGetLinkForGuestCustomer(): void
229
229
$ this ->session ->expects ($ this ->once ())->method ('authenticate ' )->willReturn (true );
230
230
$ this ->objectManager
231
231
->method ('get ' )
232
- ->withConsecutive ([Session ::class], [Data ::class])
233
- ->willReturnOnConsecutiveCalls ($ this ->session , $ this ->helperData );
232
+ ->withConsecutive ([Data ::class], [Session ::class])
233
+ ->willReturnOnConsecutiveCalls ($ this ->helperData , $ this ->session );
234
234
$ this ->objectManager
235
235
->method ('create ' )
236
236
->withConsecutive ([Item::class], [Product::class], [UrlInterface::class])
@@ -262,8 +262,8 @@ public function testGetLinkForWrongCustomer(): void
262
262
$ this ->session ->expects ($ this ->once ())->method ('getCustomerId ' )->willReturn ('customer_id ' );
263
263
$ this ->objectManager
264
264
->method ('get ' )
265
- ->withConsecutive ([Session ::class], [Data ::class])
266
- ->willReturnOnConsecutiveCalls ($ this ->session , $ this ->helperData );
265
+ ->withConsecutive ([Data ::class], [Session ::class])
266
+ ->willReturnOnConsecutiveCalls ($ this ->helperData , $ this ->session );
267
267
$ this ->objectManager
268
268
->method ('create ' )
269
269
->withConsecutive ([Item::class], [Purchased::class])
@@ -295,8 +295,8 @@ public function testExceptionInUpdateLinkStatus($mimeType, $disposition): void
295
295
->willReturnSelf ();
296
296
$ this ->objectManager
297
297
->method ('get ' )
298
- ->withConsecutive ([\ Magento \ Customer \ Model \Session::class], [ Data::class], [Download::class])
299
- ->willReturnOnConsecutiveCalls ($ this ->session , $ this -> helperData , $ this ->downloadHelper );
298
+ ->withConsecutive ([Data::class], [Download::class])
299
+ ->willReturnOnConsecutiveCalls ($ this ->helperData , $ this ->downloadHelper );
300
300
$ this ->objectManager
301
301
->method ('create ' )
302
302
->withConsecutive ([Item::class])
@@ -383,8 +383,8 @@ public function testLinkNotAvailable($messageType, $status, $notice): void
383
383
$ this ->linkPurchasedItem ->expects ($ this ->once ())->method ('getId ' )->willReturn (5 );
384
384
$ this ->objectManager
385
385
->method ('get ' )
386
- ->withConsecutive ([Session ::class], [Data ::class])
387
- ->willReturnOnConsecutiveCalls ($ this ->session , $ this ->helperData );
386
+ ->withConsecutive ([Data ::class], [Session ::class])
387
+ ->willReturnOnConsecutiveCalls ($ this ->helperData , $ this ->session );
388
388
$ this ->objectManager
389
389
->method ('create ' )
390
390
->with (Item::class)
0 commit comments