Changeset 59017
- Timestamp:
- 09/12/2024 09:39:41 PM (4 weeks ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/canonical.php
r57645 r59017 431 431 $this->go_to( get_permalink( $p ) ); 432 432 433 $url = redirect_canonical( add_query_arg( '%D0%BA%D0%BE%D0%BA%D0%BE%D0%BA%D0%BE', 1, site_url( '/' ) ), false ); 434 $this->assertNull( $url ); 433 $redirect = redirect_canonical( add_query_arg( '%D0%BA%D0%BE%D0%BA%D0%BE%D0%BA%D0%BE', 1, site_url( '/' ) ), false ); 435 434 436 435 delete_option( 'page_on_front' ); 436 437 $this->assertNull( $redirect ); 437 438 } 438 439 … … 457 458 ); 458 459 459 $url = redirect_canonical( get_term_feed_link( self::$terms['/category/parent/'] ), false ); 460 $redirect = redirect_canonical( get_term_feed_link( self::$terms['/category/parent/'] ), false ); 461 460 462 // Restore original global. 461 463 $GLOBALS['wp_query'] = $global_query; 462 464 463 $this->assertNull( $ url);465 $this->assertNull( $redirect ); 464 466 } 465 467 -
trunk/tests/phpunit/tests/canonical/https.php
r56547 r59017 62 62 $redirect = redirect_canonical( $this->https, false ); 63 63 64 remove_filter( 'home_url', array( $this, 'set_https' ) ); 65 64 66 $this->assertNull( $redirect ); 65 66 remove_filter( 'home_url', array( $this, 'set_https' ) );67 67 } 68 68 }
Note: See TracChangeset
for help on using the changeset viewer.