File tree Expand file tree Collapse file tree 2 files changed +3
-3
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 +3
-3
lines changed Original file line number Diff line number Diff line change 18
18
use Magento \Sales \Helper \Guest as GuestHelper ;
19
19
20
20
/**
21
- * Class Form
21
+ * Class Form - display Sales and Returns form for guest users
22
22
*/
23
23
class Form extends \Magento \Framework \App \Action \Action implements HttpGetActionInterface
24
24
{
@@ -63,7 +63,7 @@ public function __construct(
63
63
public function execute ()
64
64
{
65
65
if ($ this ->customerSession ->isLoggedIn ()) {
66
- return $ this ->resultRedirectFactory ->create ()->setPath ('customer/account/ ' );
66
+ return $ this ->resultRedirectFactory ->create ()->setPath ('sales/order/history ' );
67
67
}
68
68
69
69
$ resultPage = $ this ->resultPageFactory ->create ();
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ public function testAttemptToOpenTheFormAsLoggedIn()
55
55
{
56
56
$ this ->login (1 );
57
57
$ this ->dispatch ('sales/guest/form/ ' );
58
- $ this ->assertRedirect ($ this ->stringContains ('customer/account ' ));
58
+ $ this ->assertRedirect ($ this ->stringContains ('sales/order/history ' ));
59
59
}
60
60
61
61
/**
You can’t perform that action at this time.
0 commit comments