diff --git a/tests/phpunit/unit/ReferenceStackTest.php b/tests/phpunit/unit/ReferenceStackTest.php index fd3342598..428a5bde9 100644 --- a/tests/phpunit/unit/ReferenceStackTest.php +++ b/tests/phpunit/unit/ReferenceStackTest.php @@ -945,16 +945,18 @@ class ReferenceStackTest extends \MediaWikiUnitTestCase { ], 'Safely ignore placeholder' => [ 'initialCallStack' => [ - [ 'increment', 1, 'foo', null, null, null, [] ], + [ 'increment', 2, 'foo', null, null, null, [] ], ], 'initialRefs' => [ 'foo' => [ [ + 'count' => -1, + 'key' => 1, 'placeholder' => true, 'number' => 10, ], [ 'count' => 2, - 'key' => 1, + 'key' => 2, ], ] ], 'rollbackCount' => 1, @@ -963,12 +965,14 @@ class ReferenceStackTest extends \MediaWikiUnitTestCase { ], 'expectedRefs' => [ 'foo' => [ [ + 'count' => -1, + 'key' => 1, 'placeholder' => true, 'number' => 10, ], [ 'count' => 1, - 'key' => 1, + 'key' => 2, ], ] ], ], diff --git a/tests/phpunit/unit/ReferencesFormatterTest.php b/tests/phpunit/unit/ReferencesFormatterTest.php index 5bc9c8f85..bdb3915f1 100644 --- a/tests/phpunit/unit/ReferencesFormatterTest.php +++ b/tests/phpunit/unit/ReferencesFormatterTest.php @@ -84,6 +84,7 @@ class ReferencesFormatterTest extends \MediaWikiUnitTestCase { 'a' => [ 'count' => 0, 'key' => 1, + 'name' => 'a', 'number' => 9, 'text' => 't1', ], @@ -112,12 +113,14 @@ class ReferencesFormatterTest extends \MediaWikiUnitTestCase { 'extends' => 'b', 'extendsIndex' => 1, 'key' => 2, + 'name' => 'a', 'number' => 1, 'text' => 't2', ], 'b' => [ 'count' => 0, 'key' => 3, + 'name' => 'b', 'number' => 1, 'text' => 't3', ],