[ "WikitextContentTest_testGetSecondaryDataUpdates_1",
CONTENT_MODEL_WIKITEXT, "hello ''world''\n",
[
- 'LinksUpdate' => [
+ LinksUpdate::class => [
'mRecursive' => true,
'mLinks' => []
]
[ "WikitextContentTest_testGetSecondaryDataUpdates_2",
CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n",
[
- 'LinksUpdate' => [
+ LinksUpdate::class => [
'mRecursive' => true,
'mLinks' => [
[ 'World_test_21344' => 0 ]
public static function dataGetSection() {
return [
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"0",
"Intro"
],
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"2",
"== test ==
just a test"
],
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"8",
false
],
public static function dataReplaceSection() {
return [
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"0",
"No more",
null,
- trim( preg_replace( '/^Intro/sm', 'No more', WikitextContentTest::$sections ) )
+ trim( preg_replace( '/^Intro/sm', 'No more', self::$sections ) )
],
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"",
"No more",
null,
"No more"
],
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"2",
"== TEST ==\nmore fun",
null,
trim( preg_replace(
'/^== test ==.*== foo ==/sm', "== TEST ==\nmore fun\n\n== foo ==",
- WikitextContentTest::$sections
+ self::$sections
) )
],
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"8",
"No more",
null,
- WikitextContentTest::$sections
+ self::$sections
],
- [ WikitextContentTest::$sections,
+ [ self::$sections,
"new",
"No more",
"New",
- trim( WikitextContentTest::$sections ) . "\n\n\n== New ==\n\nNo more"
+ trim( self::$sections ) . "\n\n\n== New ==\n\nNo more"
],
];
}
'any',
true
],
- [ 'Foo',
- null,
- 'comma',
- false
- ],
- [ 'Foo, bar',
- null,
- 'comma',
- true
- ],
[ 'Foo',
null,
'link',
'any',
false
],
- [ '#REDIRECT [[bar]]',
- true,
- 'comma',
- false
- ],
[ '#REDIRECT [[bar]]',
true,
'link',
return [
[ "WikitextContentTest_testGetSecondaryDataUpdates_1",
CONTENT_MODEL_WIKITEXT, "hello ''world''\n",
- [ 'LinksDeletionUpdate' => [] ]
+ [ LinksDeletionUpdate::class => [] ]
],
[ "WikitextContentTest_testGetSecondaryDataUpdates_2",
CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n",
- [ 'LinksDeletionUpdate' => [] ]
+ [ LinksDeletionUpdate::class => [] ]
],
// @todo more...?
];