X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FSanitizerTest.php;h=ad8aa1e7ebc9ebab44aa0cfa70eed23eba24677c;hb=d55fb0791b2bb8a2ea9f34347f565efe730152d4;hp=b5965c480c082b67dc89adfd596f7f791c2d1317;hpb=15f6eff90c305d405fe4331c8a8dc8caa842e5b3;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/parser/SanitizerTest.php b/tests/phpunit/includes/parser/SanitizerTest.php index b5965c480c..ad8aa1e7eb 100644 --- a/tests/phpunit/includes/parser/SanitizerTest.php +++ b/tests/phpunit/includes/parser/SanitizerTest.php @@ -100,6 +100,8 @@ class SanitizerTest extends MediaWikiTestCase { * @param bool $escaped Whether sanitizer let the tag in or escape it (ie: '<video>') */ public function testRemovehtmltagsOnHtml5Tags( $tag, $escaped ) { + $this->hideDeprecated( 'disabling tidy' ); + $this->hideDeprecated( 'MWTidy::setInstance' ); MWTidy::setInstance( false ); if ( $escaped ) { @@ -162,6 +164,8 @@ class SanitizerTest extends MediaWikiTestCase { * @covers Sanitizer::removeHTMLtags */ public function testRemoveHTMLtags( $input, $output, $msg = null ) { + $this->hideDeprecated( 'disabling tidy' ); + $this->hideDeprecated( 'MWTidy::setInstance' ); MWTidy::setInstance( false ); $this->assertEquals( $output, Sanitizer::removeHTMLtags( $input ), $msg ); } @@ -514,7 +518,7 @@ class SanitizerTest extends MediaWikiTestCase { public function provideStripAllTags() { return [ [ '

Foo

', 'Foo' ], - [ '

Foo

Bar

', 'FooBar' ], + [ '

Foo

Bar

', 'Foo Bar' ], [ "

Foo

\n

Bar

", 'Foo Bar' ], [ '

Hello <strong> world café

', 'Hello world café' ], [