Changeset 52010 for trunk/tests/phpunit/tests/formatting/sanitizeTitle.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/sanitizeTitle.php
r51623 r52010 5 5 */ 6 6 class Tests_Formatting_SanitizeTitle extends WP_UnitTestCase { 7 function test_strips_html() {7 public function test_strips_html() { 8 8 $input = 'Captain <strong>Awesome</strong>'; 9 9 $expected = 'captain-awesome'; … … 11 11 } 12 12 13 function test_titles_sanitized_to_nothing_are_replaced_with_optional_fallback() {13 public function test_titles_sanitized_to_nothing_are_replaced_with_optional_fallback() { 14 14 $input = '<strong></strong>'; 15 15 $fallback = 'Captain Awesome';
Note: See TracChangeset
for help on using the changeset viewer.