Skip to content

Commit a146f50

Browse files
committed
Covering the logged in to access the Returns form use case
1 parent 37c10bc commit a146f50

File tree

1 file changed

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

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,19 @@ public function testViewOrderAsLoggedIn()
4444
$this->assertRedirect($this->stringContains('sales/order/history/'));
4545
}
4646

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+
4760
/**
4861
* Test Return Order for guest with incorrect data
4962
*/

0 commit comments

Comments
 (0)