@@ -180,7 +180,7 @@ protected function setUp(): void
180180 */
181181 public function testAbsentLinkId (): void
182182 {
183- $ this ->objectManager ->expects ($ this ->once ())
183+ $ this ->objectManager ->expects ($ this ->never ())
184184 ->method ('get ' )
185185 ->with (Session::class)
186186 ->willReturn ($ this ->session );
@@ -229,8 +229,8 @@ public function testGetLinkForGuestCustomer(): void
229229 $ this ->session ->expects ($ this ->once ())->method ('authenticate ' )->willReturn (true );
230230 $ this ->objectManager
231231 ->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 );
234234 $ this ->objectManager
235235 ->method ('create ' )
236236 ->withConsecutive ([Item::class], [Product::class], [UrlInterface::class])
@@ -262,8 +262,8 @@ public function testGetLinkForWrongCustomer(): void
262262 $ this ->session ->expects ($ this ->once ())->method ('getCustomerId ' )->willReturn ('customer_id ' );
263263 $ this ->objectManager
264264 ->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 );
267267 $ this ->objectManager
268268 ->method ('create ' )
269269 ->withConsecutive ([Item::class], [Purchased::class])
@@ -295,8 +295,8 @@ public function testExceptionInUpdateLinkStatus($mimeType, $disposition): void
295295 ->willReturnSelf ();
296296 $ this ->objectManager
297297 ->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 );
300300 $ this ->objectManager
301301 ->method ('create ' )
302302 ->withConsecutive ([Item::class])
@@ -383,8 +383,8 @@ public function testLinkNotAvailable($messageType, $status, $notice): void
383383 $ this ->linkPurchasedItem ->expects ($ this ->once ())->method ('getId ' )->willReturn (5 );
384384 $ this ->objectManager
385385 ->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 );
388388 $ this ->objectManager
389389 ->method ('create ' )
390390 ->with (Item::class)
0 commit comments