- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/functions/allowedProtocols.php
r49055 r52010 11 11 * @ticket 19354 12 12 */ 13 function test_data_is_not_an_allowed_protocol() {13 public function test_data_is_not_an_allowed_protocol() { 14 14 $this->assertNotContains( 'data', wp_allowed_protocols() ); 15 15 } 16 16 17 function test_allowed_protocol_has_an_example() {17 public function test_allowed_protocol_has_an_example() { 18 18 $example_protocols = array(); 19 19 foreach ( $this->data_example_urls() as $example ) { … … 30 30 * @param string Example URL. 31 31 */ 32 function test_allowed_protocols( $protocol, $url ) {32 public function test_allowed_protocols( $protocol, $url ) { 33 33 $this->assertSame( $url, esc_url( $url, $protocol ) ); 34 34 $this->assertSame( $url, esc_url( $url, wp_allowed_protocols() ) ); … … 38 38 * @link http://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml 39 39 */ 40 function data_example_urls() {40 public function data_example_urls() { 41 41 return array( 42 42 array( 'http', 'http://example.com' ), // RFC7230
Note: See TracChangeset
for help on using the changeset viewer.