Merge "Use PageIdentityValue instead of SearchResultPageIdentityValue."

This commit is contained in:
jenkins-bot 2021-05-13 20:35:15 +00:00 committed by Gerrit Code Review
commit 5bad40f6f8

View file

@ -4,7 +4,7 @@ namespace PageImages\Tests\Hooks;
use LocalFile;
use MediaWiki\Page\PageIdentity;
use MediaWiki\Rest\Entity\SearchResultPageIdentityValue;
use MediaWiki\Page\PageIdentityValue;
use MediaWikiTestCase;
use PageImages\Hooks\SearchResultProvideThumbnailHookHandler;
use PageImages\PageImages;
@ -98,10 +98,10 @@ class SearchResultProvideThumbnailHookHandlerTest extends MediaWikiTestCase {
->getMock();
$pageIdentities = [
1 => new SearchResultPageIdentityValue( 1, NS_MAIN, 'dbKey1', PageIdentity::LOCAL ),
2 => new SearchResultPageIdentityValue( 2, NS_MAIN, 'dbKey2', PageIdentity::LOCAL ),
3 => new SearchResultPageIdentityValue( 3, NS_FILE, 'dbKey3', PageIdentity::LOCAL ),
4 => new SearchResultPageIdentityValue( 4, NS_FILE, 'dbKey4', PageIdentity::LOCAL )
1 => new PageIdentityValue( 1, NS_MAIN, 'dbKey1', PageIdentity::LOCAL ),
2 => new PageIdentityValue( 2, NS_MAIN, 'dbKey2', PageIdentity::LOCAL ),
3 => new PageIdentityValue( 3, NS_FILE, 'dbKey3', PageIdentity::LOCAL ),
4 => new PageIdentityValue( 4, NS_FILE, 'dbKey4', PageIdentity::LOCAL )
];
$pageProps->expects( $this->once() )