Changeset 50391 for trunk/tests/phpunit/tests/https-detection.php
- Timestamp:
- 02/19/2021 09:11:02 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/https-detection.php
r50284 r50391 172 172 /** 173 173 * @ticket 47577 174 * @ticket 52542 174 175 */ 175 176 public function test_wp_is_local_html_output_via_rsd_link() { … … 181 182 // HTML includes modified RSD link but same URL. 182 183 $head_tag = str_replace( ' />', '>', get_echo( 'rsd_link' ) ); 184 $html = $this->get_sample_html_string( $head_tag ); 185 $this->assertTrue( wp_is_local_html_output( $html ) ); 186 187 // HTML includes RSD link with alternative URL scheme. 188 $head_tag = get_echo( 'rsd_link' ); 189 $head_tag = false !== strpos( $head_tag, 'https://' ) ? str_replace( 'https://', 'http://', $head_tag ) : str_replace( 'http://', 'https://', $head_tag ); 183 190 $html = $this->get_sample_html_string( $head_tag ); 184 191 $this->assertTrue( wp_is_local_html_output( $html ) );
Note: See TracChangeset
for help on using the changeset viewer.