Changeset 38951 for trunk/tests/phpunit/tests/query/conditionals.php
- Timestamp:
- 10/26/2016 08:06:43 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/conditionals.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/conditionals.php
r38938 r38951 1045 1045 1046 1046 /** 1047 * @ticket 18375 1048 */ 1049 function test_is_page_template_other_post_type() { 1050 $post_id = self::factory()->post->create( array( 'post_type' => 'post' ) ); 1051 update_post_meta( $post_id, '_wp_page_template', 'example.php' ); 1052 $this->go_to( get_post_permalink( $post_id ) ); 1053 $this->assertFalse( is_page_template( array( 'test.php' ) ) ); 1054 $this->assertTrue( is_page_template( array( 'test.php', 'example.php' ) ) ); 1055 } 1056 1057 /** 1047 1058 * @ticket 35902 1048 1059 */
Note: See TracChangeset
for help on using the changeset viewer.