Use setContentLang() instead of setMwGlobals()
[lhc/web/wiklou.git] / tests / phpunit / includes / content / ContentHandlerTest.php
index 9a1c90f..7c63105 100644 (file)
@@ -335,7 +335,7 @@ class ContentHandlerTest extends MediaWikiTestCase {
         * page.
         */
        public function testGetAutosummary() {
-               $this->setMwGlobals( 'wgContLang', Language::factory( 'en' ) );
+               $this->setContentLang( 'en' );
 
                $content = new DummyContentHandlerForTesting( CONTENT_MODEL_WIKITEXT );
                $title = Title::newFromText( 'Help:Test' );