Skip to content

Commit 1f93850

Browse files
committed
MAGETWO-95238: Cannot reset customer password from Admin Panel
- fix integration tests
1 parent 8ee8230 commit 1f93850

File tree

1 file changed

+3
-3
lines changed
  • dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml

1 file changed

+3
-3
lines changed

dev/tests/integration/testsuite/Magento/Customer/Controller/Adminhtml/IndexTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ public function testValidateCustomerWithAddressFailure()
738738
public function testResetPasswordActionNoCustomerId()
739739
{
740740
// No customer ID in post, will just get redirected to base
741-
$this->getRequest()->setMethod(HttpRequest::METHOD_POST);
741+
$this->getRequest()->setMethod(HttpRequest::METHOD_GET);
742742
$this->dispatch('backend/customer/index/resetPassword');
743743
$this->assertRedirect($this->stringStartsWith($this->_baseControllerUrl));
744744
}
@@ -749,7 +749,7 @@ public function testResetPasswordActionNoCustomerId()
749749
public function testResetPasswordActionBadCustomerId()
750750
{
751751
// Bad customer ID in post, will just get redirected to base
752-
$this->getRequest()->setMethod(HttpRequest::METHOD_POST);
752+
$this->getRequest()->setMethod(HttpRequest::METHOD_GET);
753753
$this->getRequest()->setPostValue(['customer_id' => '789']);
754754
$this->dispatch('backend/customer/index/resetPassword');
755755
$this->assertRedirect($this->stringStartsWith($this->_baseControllerUrl));
@@ -761,7 +761,7 @@ public function testResetPasswordActionBadCustomerId()
761761
public function testResetPasswordActionSuccess()
762762
{
763763
$this->getRequest()->setPostValue(['customer_id' => '1']);
764-
$this->getRequest()->setMethod(HttpRequest::METHOD_POST);
764+
$this->getRequest()->setMethod(HttpRequest::METHOD_GET);
765765
$this->dispatch('backend/customer/index/resetPassword');
766766
$this->assertSessionMessages(
767767
$this->equalTo(['The customer will receive an email with a link to reset password.']),

0 commit comments

Comments
 (0)