@@ -738,7 +738,7 @@ public function testValidateCustomerWithAddressFailure()
738
738
public function testResetPasswordActionNoCustomerId ()
739
739
{
740
740
// 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 );
742
742
$ this ->dispatch ('backend/customer/index/resetPassword ' );
743
743
$ this ->assertRedirect ($ this ->stringStartsWith ($ this ->_baseControllerUrl ));
744
744
}
@@ -749,7 +749,7 @@ public function testResetPasswordActionNoCustomerId()
749
749
public function testResetPasswordActionBadCustomerId ()
750
750
{
751
751
// 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 );
753
753
$ this ->getRequest ()->setPostValue (['customer_id ' => '789 ' ]);
754
754
$ this ->dispatch ('backend/customer/index/resetPassword ' );
755
755
$ this ->assertRedirect ($ this ->stringStartsWith ($ this ->_baseControllerUrl ));
@@ -761,7 +761,7 @@ public function testResetPasswordActionBadCustomerId()
761
761
public function testResetPasswordActionSuccess ()
762
762
{
763
763
$ this ->getRequest ()->setPostValue (['customer_id ' => '1 ' ]);
764
- $ this ->getRequest ()->setMethod (HttpRequest::METHOD_POST );
764
+ $ this ->getRequest ()->setMethod (HttpRequest::METHOD_GET );
765
765
$ this ->dispatch ('backend/customer/index/resetPassword ' );
766
766
$ this ->assertSessionMessages (
767
767
$ this ->equalTo (['The customer will receive an email with a link to reset password. ' ]),
0 commit comments