File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
dev/tests/integration/testsuite/Magento/Customer/Controller Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ public function testCreatepasswordAction()
74
74
$ token = Bootstrap::getObjectManager ()->get ('Magento\Framework\Math\Random ' )
75
75
->getUniqueHash ();
76
76
$ customer ->changeResetPasswordLinkToken ($ token );
77
+ $ customer ->save ();
77
78
78
79
$ this ->getRequest ()->setParam ('token ' , $ token );
79
80
$ this ->getRequest ()->setParam ('id ' , $ customer ->getId ());
@@ -95,6 +96,7 @@ public function testCreatepasswordActionInvalidToken()
95
96
$ token = Bootstrap::getObjectManager ()->get ('Magento\Framework\Math\Random ' )
96
97
->getUniqueHash ();
97
98
$ customer ->changeResetPasswordLinkToken ($ token );
99
+ $ customer ->save ();
98
100
99
101
$ this ->getRequest ()->setParam ('token ' , 'INVALIDTOKEN ' );
100
102
$ this ->getRequest ()->setParam ('id ' , $ customer ->getId ());
You can’t perform that action at this time.
0 commit comments