X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fpage%2FWikiPageMcrReadNewDbTest.php;h=78c0ac364c732deebaeeabfd65c4cfc09a8d8153;hb=08ee999b70c8baa31222259a6e77e59412f00562;hp=69d12e31a3125d033839d001e5aa1e2a8ea3ebd6;hpb=d69b967481649acbf8fa3d4e60df821bd24fda01;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/page/WikiPageMcrReadNewDbTest.php b/tests/phpunit/includes/page/WikiPageMcrReadNewDbTest.php index 69d12e31a3..78c0ac364c 100644 --- a/tests/phpunit/includes/page/WikiPageMcrReadNewDbTest.php +++ b/tests/phpunit/includes/page/WikiPageMcrReadNewDbTest.php @@ -1,4 +1,6 @@ defineMockContentModelForUpdateTesting( 'M1' ); $a1 = $this->defineMockContentModelForUpdateTesting( 'A1' ); + MediaWikiServices::getInstance()->getSlotRoleRegistry()->defineRoleWithModel( + 'aux', + $a1->getModelID() + ); + $mainContent1 = $this->createMockContent( $m1, 'main 1' ); $auxContent1 = $this->createMockContent( $a1, 'aux 1' );