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
Add tests for ExtensionJsonValidator
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
parser
/
ParserOutputTest.php
diff --git
a/tests/phpunit/includes/parser/ParserOutputTest.php
b/tests/phpunit/includes/parser/ParserOutputTest.php
index
efcc4e0
..
1f3ee67
100644
(file)
--- a/
tests/phpunit/includes/parser/ParserOutputTest.php
+++ b/
tests/phpunit/includes/parser/ParserOutputTest.php
@@
-349,6
+349,11
@@
EOF
'Unwrap without a mw-parser-output wrapper' => [
[ 'unwrap' => true ], [], '<div class="foobar">Content</div>', '<div class="foobar">Content</div>'
],
'Unwrap without a mw-parser-output wrapper' => [
[ 'unwrap' => true ], [], '<div class="foobar">Content</div>', '<div class="foobar">Content</div>'
],
+ 'Unwrap with extra comment at end' => [
+ [ 'unwrap' => true ], [], '<div class="mw-parser-output"><p>Test document.</p></div>
+<!-- Saved in parser cache... -->', '<p>Test document.</p>
+<!-- Saved in parser cache... -->'
+ ],
];
// phpcs:enable
}
];
// phpcs:enable
}