Skip to content

Commit 557de99

Browse files
committed
MC-16410: "Whoops, our bad" when copy and paste order information url on storefront
- Added integration test
1 parent 0bf53de commit 557de99

File tree

1 file changed

+28
-0
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Controller/Guest

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
namespace Magento\Sales\Controller\Guest;
9+
10+
use Magento\TestFramework\Request;
11+
use Magento\TestFramework\TestCase\AbstractController;
12+
13+
/**
14+
* Test for \Magento\Sales\Controller\Guest\View class.
15+
*/
16+
class ViewTest extends AbstractController
17+
{
18+
/**
19+
* Check that controller applied GET requests.
20+
*/
21+
public function testExecuteWithGetRequest()
22+
{
23+
$this->getRequest()->setMethod(Request::METHOD_GET);
24+
$this->dispatch('sales/guest/view/');
25+
26+
$this->assertRedirect($this->stringContains('sales/guest/form'));
27+
}
28+
}

0 commit comments

Comments
 (0)