Merge "Make LocalPasswordPrimaryAuthenticationProviderTest use TS_MW timestamp conver...
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 10 May 2017 18:32:10 +0000 (18:32 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 10 May 2017 18:32:10 +0000 (18:32 +0000)
tests/phpunit/includes/auth/LocalPasswordPrimaryAuthenticationProviderTest.php

index b89f1e0..4d60342 100644 (file)
@@ -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 ] )
+                       )
                );
        }