Changeset 52010 for trunk/tests/phpunit/tests/formatting/sanitizeUser.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/sanitizeUser.php
r51623 r52010 5 5 */ 6 6 class Tests_Formatting_SanitizeUser extends WP_UnitTestCase { 7 function test_strips_html() {7 public function test_strips_html() { 8 8 $input = 'Captain <strong>Awesome</strong>'; 9 9 $expected = is_multisite() ? 'captain awesome' : 'Captain Awesome'; … … 33 33 } 34 34 35 function test_strips_percent_encoded_octets() {35 public function test_strips_percent_encoded_octets() { 36 36 $expected = is_multisite() ? 'franois' : 'Franois'; 37 37 $this->assertSame( $expected, sanitize_user( 'Fran%c3%a7ois' ) ); 38 38 } 39 function test_optional_strict_mode_reduces_to_safe_ascii_subset() {39 public function test_optional_strict_mode_reduces_to_safe_ascii_subset() { 40 40 $this->assertSame( 'abc', sanitize_user( '()~ab~ˆcˆ!', true ) ); 41 41 }
Note: See TracChangeset
for help on using the changeset viewer.