X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fapi%2FApiQueryWatchlistRawIntegrationTest.php;h=b41c3e5b2fd5a5f6724631aa061cf5ae09360f41;hp=2af63c4983e30e60c326bba31632190e1b03e056;hb=af80076034fb734d652eb043c523c1d8df974e51;hpb=c29357e7e81b631668c8bd3ccd4b805701380c63 diff --git a/tests/phpunit/includes/api/ApiQueryWatchlistRawIntegrationTest.php b/tests/phpunit/includes/api/ApiQueryWatchlistRawIntegrationTest.php index 2af63c4983..b41c3e5b2f 100644 --- a/tests/phpunit/includes/api/ApiQueryWatchlistRawIntegrationTest.php +++ b/tests/phpunit/includes/api/ApiQueryWatchlistRawIntegrationTest.php @@ -476,7 +476,7 @@ class ApiQueryWatchlistRawIntegrationTest extends ApiTestCase { new TitleValue( 1, 'ApiQueryWatchlistRawIntegrationTestPage1' ), ] ); - ObjectCache::getMainWANInstance()->clearProcessCache(); + MediaWikiServices::getInstance()->getMainWANObjectCache()->clearProcessCache(); $result = $this->doListWatchlistRawRequest( [ 'wrowner' => $otherUser->getName(), 'wrtoken' => '1234567890', @@ -535,7 +535,7 @@ class ApiQueryWatchlistRawIntegrationTest extends ApiTestCase { // $result[0]['query']['pages'] uses page ids as keys $item = array_values( $result[0]['query']['pages'] )[0]; - $this->assertEquals( 0, $item['ns'] ); + $this->assertSame( 0, $item['ns'] ); $this->assertEquals( 'ApiQueryWatchlistRawIntegrationTestPage', $item['title'] ); }