X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fcontent%2FWikitextContentTest.php;h=1db6aab618ebb259108767aa2b88d0b40c7ce056;hp=d0996e3cfc91e530d0f4e93db1425583f9cd1e40;hb=326d655fc9309f55112538b387ed8c201158a27d;hpb=971a50c4f3c61fb3a4bec60cd712317bb8ddcb9a diff --git a/tests/phpunit/includes/content/WikitextContentTest.php b/tests/phpunit/includes/content/WikitextContentTest.php index d0996e3cfc..1db6aab618 100644 --- a/tests/phpunit/includes/content/WikitextContentTest.php +++ b/tests/phpunit/includes/content/WikitextContentTest.php @@ -40,7 +40,7 @@ more stuff [ "WikitextContentTest_testGetSecondaryDataUpdates_1", CONTENT_MODEL_WIKITEXT, "hello ''world''\n", [ - 'LinksUpdate' => [ + LinksUpdate::class => [ 'mRecursive' => true, 'mLinks' => [] ] @@ -49,7 +49,7 @@ more stuff [ "WikitextContentTest_testGetSecondaryDataUpdates_2", CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n", [ - 'LinksUpdate' => [ + LinksUpdate::class => [ 'mRecursive' => true, 'mLinks' => [ [ 'World_test_21344' => 0 ] @@ -266,16 +266,6 @@ just a test" 'any', true ], - [ 'Foo', - null, - 'comma', - false - ], - [ 'Foo, bar', - null, - 'comma', - true - ], [ 'Foo', null, 'link', @@ -301,11 +291,6 @@ just a test" 'any', false ], - [ '#REDIRECT [[bar]]', - true, - 'comma', - false - ], [ '#REDIRECT [[bar]]', true, 'link', @@ -446,11 +431,11 @@ just a test" 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...? ];