File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/code/Magento/Sales/Controller/Guest
dev/tests/integration/testsuite/Magento/Sales/Controller/Guest Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
namespace Magento \Sales \Controller \Guest ;
7
7
8
8
use Magento \Framework \App \Action ;
9
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
9
10
use Magento \Sales \Helper \Guest as GuestHelper ;
10
11
use Magento \Framework \View \Result \PageFactory ;
11
12
use Magento \Framework \Controller \ResultInterface ;
14
15
/**
15
16
* Guest order view action.
16
17
*/
17
- class View extends Action \Action implements HttpPostActionInterface
18
+ class View extends Action \Action implements HttpPostActionInterface, HttpGetActionInterface
18
19
{
19
20
/**
20
21
* @var \Magento\Sales\Helper\Guest
Original file line number Diff line number Diff line change 16
16
class ViewTest extends AbstractController
17
17
{
18
18
/**
19
- * Check that controller applied only POST requests.
19
+ * Check that controller applied GET requests.
20
20
*/
21
- public function testExecuteWithNonPostRequest ()
21
+ public function testExecuteWithGetRequest ()
22
22
{
23
23
$ this ->getRequest ()->setMethod (Request::METHOD_GET );
24
24
$ this ->dispatch ('sales/guest/view/ ' );
25
25
26
- $ this ->assert404NotFound ( );
26
+ $ this ->assertRedirect ( $ this -> stringContains ( ' sales/guest/form ' ) );
27
27
}
28
28
}
You can’t perform that action at this time.
0 commit comments