Changeset 65733
- Timestamp:
- 11/20/2026 11:02:41 PM (7 hours ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/formatting/escUrl.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/formatting/escUrl.php
r60734 r65733 5 5 * 6 6 * @covers ::esc_url 7 * @covers ::esc_url_raw 7 8 */ 8 9 class Tests_Formatting_EscUrl extends WP_UnitTestCase { … … 312 313 $this->assertSame( 'http://[::FFFF::127.0.0.1]/?foo%5Bbar%5D=baz', esc_url( 'http://[::FFFF::127.0.0.1]/?foo[bar]=baz' ) ); 313 314 } 315 316 /** 317 * Tests that esc_url_raw() preserves raw ampersands and accepts custom protocols. 318 * 319 * @ticket 65819 320 */ 321 public function test_esc_url_raw() { 322 $url = 'custom://example.com/?one=1&two=2'; 323 324 $this->assertSame( $url, esc_url_raw( $url, array( 'custom' ) ) ); 325 } 314 326 }
Note:
See TracChangeset
for help on using the changeset viewer.