Changeset 34085 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 09/12/2015 06:53:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r34001 r34085 1201 1201 wp_set_current_user( $old_uid ); 1202 1202 } 1203 1204 /** 1205 * @ticket 32585 1206 */ 1207 public function test_wp_insert_post_author_zero() { 1208 $post_id = $this->factory->post->create( array( 'post_author' => 0 ) ); 1209 1210 $this->assertEquals( 0, get_post( $post_id )->post_author ); 1211 } 1212 1213 /** 1214 * @ticket 32585 1215 */ 1216 public function test_wp_insert_post_author_null() { 1217 $post_id = $this->factory->post->create( array( 'post_author' => null ) ); 1218 1219 $this->assertEquals( $this->author_id, get_post( $post_id )->post_author ); 1220 } 1203 1221 }
Note: See TracChangeset
for help on using the changeset viewer.