Changeset 25312 for trunk/tests/phpunit/tests/query/conditionals.php
- Timestamp:
- 09/10/2013 03:01:10 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/conditionals.php
r25292 r25312 700 700 $this->assertQueryTrue( 'is_post_type_archive', 'is_archive' ); 701 701 $this->assertEquals( get_queried_object(), get_post_type_object( $cpt_name ) ); 702 $this->assertEquals( get_queried_object(), get_post_type_object( array( $cpt_name ) ) );703 $this->assertEquals( get_queried_object(), get_post_type_object( array( $cpt_name, 'post' ) ) );704 702 705 703 add_action( 'pre_get_posts', array( $this, 'pre_get_posts_with_type_array' ) ); … … 708 706 $this->assertQueryTrue( 'is_post_type_archive', 'is_archive' ); 709 707 $this->assertEquals( get_queried_object(), get_post_type_object( 'post' ) ); 710 $this->assertEquals( get_queried_object(), get_post_type_object( array( 'post' ) ) );711 $this->assertEquals( get_queried_object(), get_post_type_object( array( 'post', $cpt_name ) ) );712 708 713 709 remove_action( 'pre_get_posts', array( $this, 'pre_get_posts_with_type_array' ) );
Note: See TracChangeset
for help on using the changeset viewer.