Skip to content

Commit b5edc50

Browse files
committed
MC-37089: Create automated test for "[Security] Customer's Order Data are not available for Guests"
1 parent a7cd4a5 commit b5edc50

File tree

1 file changed

+2
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Controller/Guest

1 file changed

+2
-1
lines changed

dev/tests/integration/testsuite/Magento/Sales/Controller/Guest/ViewTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Framework\Stdlib\CookieManagerInterface;
1111
use Magento\Sales\Api\Data\OrderInterfaceFactory;
1212
use Magento\Sales\Api\OrderRepositoryInterface;
13+
use Magento\Sales\Helper\Guest;
1314
use Magento\TestFramework\Request;
1415
use 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/'));

0 commit comments

Comments
 (0)