dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Drop 'comma' value for wgArticleCountMethod
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
content
/
WikitextContentTest.php
diff --git
a/tests/phpunit/includes/content/WikitextContentTest.php
b/tests/phpunit/includes/content/WikitextContentTest.php
index
b9ce997
..
1db6aab
100644
(file)
--- 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",
[
[ "WikitextContentTest_testGetSecondaryDataUpdates_1",
CONTENT_MODEL_WIKITEXT, "hello ''world''\n",
[
-
'LinksUpdate'
=> [
+
LinksUpdate::class
=> [
'mRecursive' => true,
'mLinks' => []
]
'mRecursive' => true,
'mLinks' => []
]
@@
-49,7
+49,7
@@
more stuff
[ "WikitextContentTest_testGetSecondaryDataUpdates_2",
CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n",
[
[ "WikitextContentTest_testGetSecondaryDataUpdates_2",
CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n",
[
-
'LinksUpdate'
=> [
+
LinksUpdate::class
=> [
'mRecursive' => true,
'mLinks' => [
[ 'World_test_21344' => 0 ]
'mRecursive' => true,
'mLinks' => [
[ 'World_test_21344' => 0 ]
@@
-103,16
+103,16
@@
more stuff
public static function dataGetSection() {
return [
public static function dataGetSection() {
return [
- [
WikitextContentTest
::$sections,
+ [
self
::$sections,
"0",
"Intro"
],
"0",
"Intro"
],
- [
WikitextContentTest
::$sections,
+ [
self
::$sections,
"2",
"== test ==
just a test"
],
"2",
"== test ==
just a test"
],
- [
WikitextContentTest
::$sections,
+ [
self
::$sections,
"8",
false
],
"8",
false
],
@@
-138,38
+138,38
@@
just a test"
public static function dataReplaceSection() {
return [
public static function dataReplaceSection() {
return [
- [
WikitextContentTest
::$sections,
+ [
self
::$sections,
"0",
"No more",
null,
"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"
],
"",
"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 ==",
"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,
"8",
"No more",
null,
-
WikitextContentTest
::$sections
+
self
::$sections
],
],
- [
WikitextContentTest
::$sections,
+ [
self
::$sections,
"new",
"No more",
"New",
"new",
"No more",
"New",
- trim(
WikitextContentTest
::$sections ) . "\n\n\n== New ==\n\nNo more"
+ trim(
self
::$sections ) . "\n\n\n== New ==\n\nNo more"
],
];
}
],
];
}
@@
-266,16
+266,6
@@
just a test"
'any',
true
],
'any',
true
],
- [ 'Foo',
- null,
- 'comma',
- false
- ],
- [ 'Foo, bar',
- null,
- 'comma',
- true
- ],
[ 'Foo',
null,
'link',
[ 'Foo',
null,
'link',
@@
-301,11
+291,6
@@
just a test"
'any',
false
],
'any',
false
],
- [ '#REDIRECT [[bar]]',
- true,
- 'comma',
- false
- ],
[ '#REDIRECT [[bar]]',
true,
'link',
[ '#REDIRECT [[bar]]',
true,
'link',
@@
-446,11
+431,11
@@
just a test"
return [
[ "WikitextContentTest_testGetSecondaryDataUpdates_1",
CONTENT_MODEL_WIKITEXT, "hello ''world''\n",
return [
[ "WikitextContentTest_testGetSecondaryDataUpdates_1",
CONTENT_MODEL_WIKITEXT, "hello ''world''\n",
- [
'LinksDeletionUpdate'
=> [] ]
+ [
LinksDeletionUpdate::class
=> [] ]
],
[ "WikitextContentTest_testGetSecondaryDataUpdates_2",
CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n",
],
[ "WikitextContentTest_testGetSecondaryDataUpdates_2",
CONTENT_MODEL_WIKITEXT, "hello [[world test 21344]]\n",
- [
'LinksDeletionUpdate'
=> [] ]
+ [
LinksDeletionUpdate::class
=> [] ]
],
// @todo more...?
];
],
// @todo more...?
];