From 3441ed1900d37c4c0f7c256f7b7ec78980a24403 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 9 May 2017 19:32:24 -0700 Subject: [PATCH] Make LocalPasswordPrimaryAuthenticationProviderTest use TS_MW timestamp conversion Bug: T75174 Change-Id: I217a8e1847a21d54434693fafa7f618ec5840876 --- .../auth/LocalPasswordPrimaryAuthenticationProviderTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php index b89f1e02e4..4d603422f2 100644 --- a/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php +++ b/tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php @@ -509,7 +509,10 @@ class LocalPasswordPrimaryAuthenticationProviderTest extends \MediaWikiTestCase $this->assertSame( $expectExpiry, - $dbw->selectField( 'user', 'user_password_expires', [ 'user_name' => $cuser ] ) + wfTimestampOrNull( + TS_MW, + $dbw->selectField( 'user', 'user_password_expires', [ 'user_name' => $cuser ] ) + ) ); } -- 2.20.1