From 1c2aada05bbb60f8c371697785fca1aca87ccaa7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 27 Nov 2020 12:50:11 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php b/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php index e105afca15..024125f387 100644 --- a/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php +++ b/tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php @@ -7,7 +7,7 @@ class Tests_Formatting_SanitizeTitleWithDashes extends WP_UnitTestCase { function test_strips_html() { $input = 'Captain Awesome'; $expected = 'captain-awesome'; - $this->assertSame( $expected, sanitize_title( $input ) ); + $this->assertSame( $expected, sanitize_title_with_dashes( $input ) ); } function test_strips_unencoded_percent_signs() {