File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -200,11 +200,10 @@ public function testSetVerificationCodeOnUser()
200
200
$ this ->assertSame (32 , strlen ($ verificationCode ));
201
201
$ this ->assertNotNull ($ user ['verificationCode ' ]);
202
202
203
- // Check the date with a delta of 1.5 seconds.
204
- $ this -> assertEqualsWithDelta (
203
+ $ this -> tester -> assertEqualDates (
204
+ $ this ,
205
205
$ dateTime ->format ('Y-m-d H:i:s ' ),
206
- $ user ['verificationCodeIssuedDate ' ],
207
- 1.5
206
+ $ user ['verificationCodeIssuedDate ' ]
208
207
);
209
208
}
210
209
Original file line number Diff line number Diff line change @@ -155,11 +155,11 @@ public function testGetHasElevatedSessionMath()
155
155
$ this ->user ->setIdentity ($ this ->userElement );
156
156
157
157
$ this ->_sessionGetStub (time () + 50 );
158
- $ this ->assertSame (50 , $ this ->user ->getElevatedSessionTimeout ());
158
+ $ this ->assertEqualsWithDelta (50 , $ this ->user ->getElevatedSessionTimeout (), 2.0 );
159
159
160
160
// If the session->get() return value is smaller than time 0 is returned
161
161
$ this ->_sessionGetStub (time () - 50 );
162
- $ this ->assertSame (0 , $ this ->user ->getElevatedSessionTimeout ());
162
+ $ this ->assertEqualsWithDelta (0 , $ this ->user ->getElevatedSessionTimeout (), 2.0 );
163
163
}
164
164
165
165
/**
You can’t perform that action at this time.
0 commit comments