Roll up a range in test fixture

This... might not be helpful.

Change-Id: Iff3342d5fbf81aa27b9aaaf1b3fc4c59fa65a365
This commit is contained in:
Adam Wight 2019-12-04 17:55:52 +01:00
parent 336dd4a27c
commit 855a3d6d48

View file

@ -133,19 +133,12 @@ class FootnoteBodyFormatterTest extends MediaWikiUnitTestCase {
'</ol></div>'
],
'Use columns' => [
[
0 => [ 'key' => 1, 'text' => 't' ],
1 => [ 'key' => 2, 'text' => 't' ],
2 => [ 'key' => 3, 'text' => 't' ],
3 => [ 'key' => 4, 'text' => 't' ],
4 => [ 'key' => 5, 'text' => 't' ],
5 => [ 'key' => 6, 'text' => 't' ],
6 => [ 'key' => 7, 'text' => 't' ],
7 => [ 'key' => 8, 'text' => 't' ],
8 => [ 'key' => 9, 'text' => 't' ],
9 => [ 'key' => 10, 'text' => 't' ],
10 => [ 'key' => 11, 'text' => 't' ],
],
array_map(
function ( $i ) {
return [ 'key' => $i, 'text' => 't' ];
},
range( 0, 10 )
),
'<div class="mw-references-wrap mw-references-columns"><ol class="references">' .
"\n" . '<li>(cite_references_link_many|||<span class="reference-text">t</span>' .
"\n|)</li>\n" .