Changeset 53562 for trunk/tests/phpunit/tests/formatting/redirect.php
- Timestamp:
- 06/23/2022 08:27:34 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/redirect.php
r52010 r53562 23 23 * @param string $location The path or URL to redirect to. 24 24 * @param int $status HTTP response status code to use. 25 * 26 * @covers ::wp_redirect 25 27 */ 26 28 public function test_wp_redirect_bad_status_code( $location, $status ) { … … 42 44 } 43 45 46 /** 47 * @covers ::wp_sanitize_redirect 48 */ 44 49 public function test_wp_sanitize_redirect() { 45 50 $this->assertSame( 'http://example.com/watchthelinefeedgo', wp_sanitize_redirect( 'http://example.com/watchthelinefeed%0Ago' ) ); … … 60 65 /** 61 66 * @ticket 36998 67 * 68 * @covers ::wp_sanitize_redirect 62 69 */ 63 70 public function test_wp_sanitize_redirect_should_encode_spaces() { … … 68 75 /** 69 76 * @dataProvider valid_url_provider 77 * 78 * @covers ::wp_validate_redirect 70 79 */ 71 80 public function test_wp_validate_redirect_valid_url( $url, $expected ) { … … 75 84 /** 76 85 * @dataProvider invalid_url_provider 86 * 87 * @covers ::wp_validate_redirect 77 88 */ 78 89 public function test_wp_validate_redirect_invalid_url( $url ) { … … 167 178 * @ticket 47980 168 179 * @dataProvider relative_url_provider 180 * 181 * @covers ::wp_validate_redirect 169 182 */ 170 183 public function test_wp_validate_redirect_relative_url( $current_uri, $url, $expected ) {
Note: See TracChangeset
for help on using the changeset viewer.