We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37c10bc commit a146f50Copy full SHA for a146f50
dev/tests/integration/testsuite/Magento/Sales/Controller/Guest/FormTest.php
@@ -44,6 +44,19 @@ public function testViewOrderAsLoggedIn()
44
$this->assertRedirect($this->stringContains('sales/order/history/'));
45
}
46
47
+ /**
48
+ * Test attempting to open the Returns form as logged in customer
49
+ *
50
+ * @magentoDataFixture Magento/Sales/_files/order.php
51
+ * @magentoDataFixture Magento/Customer/_files/customer.php
52
+ */
53
+ public function testAttemptToOpenTheFormAsLoggedIn()
54
+ {
55
+ $this->login(1);
56
+ $this->dispatch('sales/guest/form/');
57
+ $this->assertRedirect($this->stringContains('customer/account'));
58
+ }
59
+
60
/**
61
* Test Return Order for guest with incorrect data
62
*/
0 commit comments