Tests: Test that sanitize_title_with_dashes() strips HTML tags.

`sanitize_title()` already has the same test in its own file.

Props pbearne.
Fixes #51881.

git-svn-id: https://develop.svn.wordpress.org/trunk@49701 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-11-27 12:50:11 +00:00
parent 850e31dc58
commit 1c2aada05b

View File

@ -7,7 +7,7 @@ class Tests_Formatting_SanitizeTitleWithDashes extends WP_UnitTestCase {
function test_strips_html() {
$input = 'Captain <strong>Awesome</strong>';
$expected = 'captain-awesome';
$this->assertSame( $expected, sanitize_title( $input ) );
$this->assertSame( $expected, sanitize_title_with_dashes( $input ) );
}
function test_strips_unencoded_percent_signs() {