X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiOpenSearchTest.php;h=209ca07b0d41b2d7e7b0fc78f1cb8a88e4d2a9dc;hb=6f9c30c67b31b12d39f2d54b431e141869895eca;hp=5358f294c6324418144f877ee96550c1448d4c7d;hpb=9964ca1a390c446397dcd466916ffed356cdc3c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/api/ApiOpenSearchTest.php b/tests/phpunit/includes/api/ApiOpenSearchTest.php index 5358f294c6..209ca07b0d 100644 --- a/tests/phpunit/includes/api/ApiOpenSearchTest.php +++ b/tests/phpunit/includes/api/ApiOpenSearchTest.php @@ -1,7 +1,8 @@ replaceSearchEngineConfig(); @@ -35,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 ); @@ -44,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() )