Changeset 1039 in tests for trunk/tests/post.php
- Timestamp:
- 09/21/2012 06:47:04 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/tests/post.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post.php
r1027 r1039 509 509 $this->assertEquals( $other_att, get_page_by_path( 'some-other-page' ) ); 510 510 } 511 512 function test_wp_publish_post() { 513 $draft_id = $this->factory->post->create( array( 'post_status' => 'draft' ) ); 514 515 $post = get_post( $draft_id ); 516 $this->assertEquals( 'draft', $post->post_status ); 517 518 wp_publish_post( $draft_id ); 519 $post = get_post( $draft_id ); 520 521 $this->assertEquals( 'publish', $post->post_status ); 522 } 511 523 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)