File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
dev/tests/integration/testsuite/Magento/User/Controller/Adminhtml Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \User \Controller \Adminhtml ;
7
7
8
+ use Magento \Framework \Intl \DateTimeFactory ;
8
9
use Magento \Framework \Stdlib \DateTime ;
9
10
use Magento \TestFramework \Mail \Template \TransportBuilderMock ;
10
11
use Magento \TestFramework \Helper \Bootstrap ;
@@ -128,7 +129,8 @@ public function testResetPasswordActionWithTokenNearExpiry()
128
129
)->generateResetPasswordLinkToken ();
129
130
$ user ->changeResetPasswordLinkToken ($ resetPasswordToken );
130
131
131
- $ anHourAgo = Bootstrap::getObjectManager ()->create (DateTime::class)
132
+ $ anHourAgo = Bootstrap::getObjectManager ()->create (DateTimeFactory::class)
133
+ ->create ()
132
134
->sub (\DateInterval::createFromDateString ('1 hour ' ))
133
135
->format (DateTime::DATETIME_PHP_FORMAT );
134
136
$ user ->setRpTokenCreatedAt ($ anHourAgo );
You can’t perform that action at this time.
0 commit comments