Changeset 34802 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 10/03/2015 05:14:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r33706 r34802 684 684 */ 685 685 function test_child_post_in_hierarchical_post_type_with_default_permalinks() { 686 global $wp_rewrite;687 688 $old_permastruct = get_option( 'permalink_structure' );689 $wp_rewrite->set_permalink_structure( '' );690 $wp_rewrite->flush_rules();691 692 686 register_post_type( 'handbook', array( 'hierarchical' => true ) ); 693 687 … … 699 693 $result = $this->q->query( array( 'handbook' => 'contributing-to-the-wordpress-codex/getting-started', 'post_type' => 'handbook' ) ); 700 694 $this->assertCount( 1, $result ); 701 702 $wp_rewrite->set_permalink_structure( $old_permastruct );703 $wp_rewrite->flush_rules();704 695 } 705 696
Note: See TracChangeset
for help on using the changeset viewer.