mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-02-20 07:42:52 +00:00
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:
parent
850e31dc58
commit
1c2aada05b
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user