Changeset 46462 for trunk/tests/phpunit/tests/formatting/redirect.php
- Timestamp:
- 10/11/2019 11:52:11 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/formatting/redirect.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/redirect.php
r44584 r46462 35 35 $this->assertEquals( 'http://example.com/search.php?search=(amistillhere)', wp_sanitize_redirect( 'http://example.com/search.php?search=(amistillhere)' ) ); 36 36 $this->assertEquals( 'http://example.com/@username', wp_sanitize_redirect( 'http://example.com/@username' ) ); 37 } 38 39 /** 40 * @group 36998 41 */ 42 function test_wp_sanitize_redirect_should_encode_spaces() { 43 $this->assertEquals( 'http://example.com/test%20spaces', wp_sanitize_redirect( 'http://example.com/test%20spaces' ) ); 44 $this->assertEquals( 'http://example.com/test%20spaces%20in%20url', wp_sanitize_redirect( 'http://example.com/test spaces in url' ) ); 37 45 } 38 46
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)