Merge "Remove deprecated functions from ChangeTags class"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 26 Mar 2018 17:35:04 +0000 (17:35 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 26 Mar 2018 17:35:05 +0000 (17:35 +0000)
tests/parser/ParserTestRunner.php
tests/phpunit/includes/api/ApiBlockTest.php

index f0c815f..28335ec 100644 (file)
@@ -1108,6 +1108,7 @@ class ParserTestRunner {
 
                // Set content language. This invalidates the magic word cache and title services
                $lang = Language::factory( $langCode );
+               $lang->resetNamespaces();
                $setup['wgContLang'] = $lang;
                $reset = function () {
                        MagicWord::clearCache();
index c0cf87e..c456e9a 100644 (file)
@@ -207,7 +207,7 @@ class ApiBlockTest extends ApiTestCase {
                );
 
                // Allow flakiness up to one second
-               $this->assertLessThan( 1,
+               $this->assertLessThanOrEqual( 1,
                        abs( wfTimestamp( TS_UNIX, $expiry ) - ( time() + 86400 ) ) );
        }