Refactor ApiTestCase to get token from ApiQueryTokens
[lhc/web/wiklou.git] / tests / phpunit / includes / specials / SpecialUncategorizedcategoriesTest.php
index 2ecef79..80bd365 100644 (file)
@@ -9,7 +9,7 @@ class UncategorizedCategoriesPageTest extends MediaWikiTestCase {
         */
        public function testGetQueryInfo( $msgContent, $expected ) {
                $msg = new RawMessage( $msgContent );
-               $mockContext = $this->getMockBuilder( 'RequestContext' )->getMock();
+               $mockContext = $this->getMockBuilder( RequestContext::class )->getMock();
                $mockContext->method( 'msg' )->willReturn( $msg );
                $special = new UncategorizedCategoriesPage();
                $special->setContext( $mockContext );