Skip to content

Commit

Permalink
EZP-31012: Fixed assertion for passwordUpdateAt value in eZ\Publish\A…
Browse files Browse the repository at this point in the history
…PI\Repository\Tests\UserServiceTest::testUpdateUserUpdatesExpectedProperties (#45)
  • Loading branch information
adamwojs authored Apr 10, 2020
1 parent 642b7cc commit 43e0643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eZ/Publish/API/Repository/Tests/UserServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1792,9 +1792,9 @@ public function testUpdateUserUpdatesExpectedProperties(User $user)

// Make sure passwordUpdatedAt field has been updated together with password
$this->assertNotNull($user->passwordUpdatedAt);
$this->assertEquals(
(new DateTime())->format('Y-m-d H:i'),
$user->passwordUpdatedAt->format('Y-m-d H:i')
$this->assertGreaterThanOrEqual(
$user->getVersionInfo()->modificationDate->getTimestamp(),
$user->passwordUpdatedAt->getTimestamp()
);
}

Expand Down

0 comments on commit 43e0643

Please # to comment.