@@ -394,7 +394,7 @@ public function testReorderItems(bool $loggedIn, string $request)
394394 $ customerSession = $ this ->_objectManager ->get (CustomerSession::class);
395395 $ customerSession ->logout ();
396396
397- $ checkoutSession = Bootstrap::getObjectManager ()->get (Session ::class);
397+ $ checkoutSession = Bootstrap::getObjectManager ()->get (CheckoutSession ::class);
398398 $ expected = [];
399399 if ($ loggedIn && $ request == Request::METHOD_POST ) {
400400 $ customer = $ this ->_objectManager ->create (CustomerRepository::class)->get ('customer2@example.com ' );
@@ -529,16 +529,16 @@ public function testUpdatePostActionWithMultipleProducts()
529529
530530 $ response = $ this ->updatePostRequest ($ quote , $ item1 , $ item2 , $ updatedQuantity , $ updatedQuantity , true );
531531
532- $ this ->assertContains (
533- '[{"error":"There are no source items with the in stock status", "itemId": ' .$ item1 ->getId ().'}] ' ,
534- $ response
532+ $ this ->assertStringContainsString (
533+ '"itemId": ' .$ item1 ->getId ().'}] ' ,
534+ $ response[ ' error_message ' ]
535535 );
536536
537537 $ response = $ this ->updatePostRequest ($ quote , $ item1 , $ item2 , $ originalQuantity , $ updatedQuantity , false );
538538
539- $ this ->assertContains (
540- '[{"error":"There are no source items with the in stock status", "itemId": ' .$ item1 ->getId ().'}] ' ,
541- $ response
539+ $ this ->assertStringContainsString (
540+ '"itemId": ' .$ item1 ->getId ().'}] ' ,
541+ $ response[ ' error_message ' ]
542542 );
543543 $ this ->assertEquals (
544544 $ originalQuantity + $ updatedQuantity ,
@@ -548,9 +548,9 @@ public function testUpdatePostActionWithMultipleProducts()
548548
549549 $ response = $ this ->updatePostRequest ($ quote , $ item1 , $ item2 , $ updatedQuantity , $ updatedQuantity , false );
550550
551- $ this ->assertContains (
552- '[{"error":"There are no source items with the in stock status", "itemId": ' .$ item1 ->getId ().'}] ' ,
553- $ response
551+ $ this ->assertStringContainsString (
552+ '"itemId": ' .$ item1 ->getId ().'}] ' ,
553+ $ response[ ' error_message ' ]
554554 );
555555 $ this ->assertEquals (
556556 $ originalQuantity + $ updatedQuantity ,
0 commit comments