X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiOpenSearchTest.php;h=209ca07b0d41b2d7e7b0fc78f1cb8a88e4d2a9dc;hb=6f9c30c67b31b12d39f2d54b431e141869895eca;hp=23fa7bcb25fda5b64098254dd18d8f4cc3ea99f8;hpb=2a3f330a289c7391f62a15d209c91d2f38deaa58;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiOpenSearchTest.php b/tests/phpunit/includes/api/ApiOpenSearchTest.php index 23fa7bcb25..209ca07b0d 100644 --- a/tests/phpunit/includes/api/ApiOpenSearchTest.php +++ b/tests/phpunit/includes/api/ApiOpenSearchTest.php @@ -1,5 +1,8 @@ replaceSearchEngineConfig(); @@ -33,7 +36,7 @@ class ApiOpenSearchTest extends MediaWikiTestCase { } private function replaceSearchEngineConfig() { - $config = $this->getMockBuilder( 'SearchEngineConfig' ) + $config = $this->getMockBuilder( SearchEngineConfig::class ) ->disableOriginalConstructor() ->getMock(); $this->setService( 'SearchEngineConfig', $config ); @@ -42,10 +45,10 @@ class ApiOpenSearchTest extends MediaWikiTestCase { } private function replaceSearchEngine() { - $engine = $this->getMockBuilder( 'SearchEngine' ) + $engine = $this->getMockBuilder( SearchEngine::class ) ->disableOriginalConstructor() ->getMock(); - $engineFactory = $this->getMockBuilder( 'SearchEngineFactory' ) + $engineFactory = $this->getMockBuilder( SearchEngineFactory::class ) ->disableOriginalConstructor() ->getMock(); $engineFactory->expects( $this->any() )