Changeset 32293 for trunk/tests/phpunit/tests/rewrite.php
- Timestamp:
- 04/24/2015 04:37:12 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rewrite.php
r31623 r32293 122 122 restore_current_blog(); 123 123 } 124 125 /** 126 * @ticket 25143 127 */ 128 public function test_is_home_should_be_false_when_visiting_custom_endpoint_without_a_registered_query_var_and_page_on_front_is_set() { 129 130 $page_id = $this->factory->post->create( array( 'post_type' => 'page' ) ); 131 update_option( 'show_on_front', 'page' ); 132 update_option( 'page_on_front', $page_id ); 133 134 add_rewrite_endpoint( 'test', EP_ALL, false ); 135 flush_rewrite_rules(); 136 137 $this->go_to( home_url( '/test/1' ) ); 138 139 $this->assertQueryTrue( 'is_front_page', 'is_page', 'is_singular' ); 140 $this->assertFalse( is_home() ); 141 } 124 142 }
Note: See TracChangeset
for help on using the changeset viewer.