Merge "NewParserTest: tear down globals before returning early"
[lhc/web/wiklou.git] / tests / phpunit / includes / BlockTest.php
index f8d2003..9f38659 100644 (file)
@@ -365,7 +365,7 @@ class BlockTest extends MediaWikiLangTestCase {
 
                # Set up the target
                $u = User::newFromName( $username );
-               if ( $u->getID() == 0 ) {
+               if ( $u->getId() == 0 ) {
                        $u->addToDatabase();
                        TestUser::setPasswordForUser( $u, 'TotallyObvious' );
                }