mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-24 08:23:28 +00:00
Merge "Use PageIdentityValue instead of SearchResultPageIdentityValue."
This commit is contained in:
commit
5bad40f6f8
|
@ -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() )
|
||||
|
|
Loading…
Reference in a new issue