Use EntityId::getSerialization() instead of serialize()

Bug: T345856
Change-Id: I3684677bff3587a1d5199a33752d46146b9e2e3e
This commit is contained in:
Lucas Werkmeister 2023-09-07 16:48:52 +02:00
parent 2ff000bd64
commit 6712685a9b

View file

@ -121,7 +121,7 @@ class MathWikibaseConnectorTestFactory extends MediaWikiUnitTestCase {
$repoConnector = $this->createMock( RepoLinker::class );
$repoConnector->method( 'getEntityUrl' )
->willReturnCallback( static function ( ItemId $itemId ) {
return self::EXAMPLE_URL . 'wiki/Special:EntityPage/' . $itemId->serialize();
return self::EXAMPLE_URL . 'wiki/Special:EntityPage/' . $itemId->getSerialization();
} );
$mathFormatter = $this->createMock( MathFormatter::class );