Changeset 47122 for trunk/tests/phpunit/tests/rewrite.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite.php
r46586 r47122 144 144 remove_filter( 'home_url', array( $this, '_filter_http_home_url' ), 10 ); 145 145 146 // Test the tests :146 // Test the tests. 147 147 $this->assertSame( 'http', parse_url( $permalink, PHP_URL_SCHEME ) ); 148 148 $this->assertSame( 'https', parse_url( $network_home, PHP_URL_SCHEME ) ); 149 149 150 // Test that the url_to_postid() call matched :150 // Test that the url_to_postid() call matched. 151 151 $this->assertEquals( $post_id, $url_to_postid ); 152 152 } … … 372 372 ); 373 373 374 // This url should NOT return a post ID 374 // This url should NOT return a post ID. 375 375 $badurl = site_url( '/example-collision' ); 376 376 $this->assertEquals( 0, url_to_postid( $badurl ) ); … … 393 393 ); 394 394 395 // This url should NOT return a post ID 395 // This url should NOT return a post ID. 396 396 $badurl = network_home_url( '/example-collision' ); 397 397 $this->assertEquals( 0, url_to_postid( $badurl ) );
Note: See TracChangeset
for help on using the changeset viewer.