Changeset 38951 for trunk/tests/phpunit/tests/post/objects.php
- Timestamp:
- 10/26/2016 08:06:43 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/objects.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/objects.php
r35242 r38951 146 146 $template = get_post_meta( $post->ID, '_wp_page_template', true ); 147 147 $this->assertEquals( 'foo.php', $template ); 148 // The post is not a page so the template is still empty149 $this->assertEquals( '', $post->page_template );150 151 // Now the post is a page and should retrieve the template152 wp_update_post( array( 'ID' => $post->ID, 'post_type' => 'page' ) );153 $post = get_post( $post_id );154 148 $this->assertEquals( $template, $post->page_template ); 155 149 }
Note: See TracChangeset
for help on using the changeset viewer.