File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
dev/tests/integration/testsuite/Magento/Sales/Controller/Guest Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1010use Magento \Framework \Stdlib \CookieManagerInterface ;
1111use Magento \Sales \Api \Data \OrderInterfaceFactory ;
1212use Magento \Sales \Api \OrderRepositoryInterface ;
13+ use Magento \Sales \Helper \Guest ;
1314use Magento \TestFramework \Request ;
1415use Magento \TestFramework \TestCase \AbstractController ;
1516
@@ -65,7 +66,7 @@ public function testExecuteWithWrongCookie(): void
6566 $ order ->setProtectCode ('0e6640 ' );
6667 $ this ->orderRepository ->save ($ order );
6768 $ cookieValue = base64_encode ('0 ' . ': ' . $ order ->getIncrementId ());
68- $ this ->cookieManager ->setPublicCookie (\ Magento \ Sales \ Helper \ Guest::COOKIE_NAME , $ cookieValue );
69+ $ this ->cookieManager ->setPublicCookie (Guest::COOKIE_NAME , $ cookieValue );
6970 $ this ->getRequest ()->setMethod (Request::METHOD_GET );
7071 $ this ->dispatch ('sales/guest/view/ ' );
7172 $ this ->assertRedirect ($ this ->stringContains ('sales/guest/form/ ' ));
You can’t perform that action at this time.
0 commit comments