Changeset 52389 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 12/19/2021 01:42:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r52010 r52389 69 69 'post_author' => self::$editor_id, 70 70 'post_status' => 'publish', 71 'post_content' => rand_str(),72 'post_title' => rand_str(),71 'post_content' => "{$post_type}_content", 72 'post_title' => "{$post_type}_title", 73 73 'tax_input' => array( 74 74 'post_tag' => 'tag1,tag2', … … 127 127 'post_author' => self::$editor_id, 128 128 'post_status' => 'publish', 129 'post_content' => rand_str(),130 'post_title' => rand_str(),129 'post_content' => 'content', 130 'post_title' => 'title', 131 131 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 132 132 ); … … 163 163 'post_author' => self::$editor_id, 164 164 'post_status' => 'publish', 165 'post_content' => rand_str(),166 'post_title' => rand_str(),165 'post_content' => 'content', 166 'post_title' => 'title', 167 167 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 168 168 ); … … 208 208 'post_author' => self::$editor_id, 209 209 'post_status' => 'publish', 210 'post_content' => rand_str(),211 'post_title' => rand_str(),210 'post_content' => 'content', 211 'post_title' => 'title', 212 212 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 213 213 ); … … 250 250 'post_author' => self::$editor_id, 251 251 'post_status' => 'draft', 252 'post_content' => rand_str(),253 'post_title' => rand_str(),252 'post_content' => 'content', 253 'post_title' => 'title', 254 254 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 255 255 ); … … 285 285 'post_author' => self::$editor_id, 286 286 'post_status' => 'publish', 287 'post_content' => rand_str(),288 'post_title' => rand_str(),287 'post_content' => 'content', 288 'post_title' => 'title', 289 289 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 290 290 ); … … 329 329 'post_author' => self::$editor_id, 330 330 'post_status' => 'publish', 331 'post_content' => rand_str(),332 'post_title' => rand_str(),331 'post_content' => "{$status}_content", 332 'post_title' => "{$status}_title", 333 333 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 334 334 ); … … 371 371 'post_author' => self::$editor_id, 372 372 'post_status' => 'private', 373 'post_content' => rand_str(),374 'post_title' => rand_str(),373 'post_content' => 'content', 374 'post_title' => 'title', 375 375 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 376 376 ); … … 405 405 'post_author' => self::$editor_id, 406 406 'post_status' => 'publish', 407 'post_content' => rand_str(),408 'post_title' => rand_str(),407 'post_content' => 'content', 408 'post_title' => 'title', 409 409 'post_date' => '2012-02-30 00:00:00', 410 410 ); … … 428 428 'post_author' => self::$editor_id, 429 429 'post_status' => 'publish', 430 'post_content' => rand_str(),431 'post_title' => rand_str(),430 'post_content' => 'content', 431 'post_title' => 'title', 432 432 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 433 433 ); … … 534 534 'post_author' => self::$editor_id, 535 535 'post_status' => 'publish', 536 'post_content' => rand_str(),537 'post_title' => rand_str(),536 'post_content' => 'content', 537 'post_title' => 'title', 538 538 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 539 539 ); … … 565 565 'post_author' => self::$editor_id, 566 566 'post_status' => 'publish', 567 'post_content' => rand_str(),567 'post_content' => 'content', 568 568 'post_title' => '', 569 569 'post_date' => '2007-10-31 06:15:00', … … 783 783 register_taxonomy( 'test_tax', 'post' ); 784 784 785 $title = rand_str();785 $title = 'title'; 786 786 $post_data = array( 787 787 'post_author' => self::$editor_id, 788 788 'post_status' => 'publish', 789 'post_content' => rand_str(),789 'post_content' => 'content', 790 790 'post_title' => $title, 791 791 'tax_input' => array( … … 907 907 908 908 $post = self::factory()->post->create( array( 'post_type' => $post_type ) ); 909 wp_set_object_terms( $post, rand_str(), $tax );909 wp_set_object_terms( $post, 'foo', $tax ); 910 910 911 911 $wp_tag_cloud = wp_tag_cloud( … … 974 974 'post_author' => self::$editor_id, 975 975 'post_status' => 'publish', 976 'post_content' => rand_str(),977 'post_title' => rand_str(),976 'post_content' => 'content', 977 'post_title' => 'title', 978 978 ) 979 979 ); … … 992 992 'post_author' => self::$editor_id, 993 993 'post_status' => 'publish', 994 'post_content' => rand_str(),995 'post_title' => rand_str(),994 'post_content' => 'content', 995 'post_title' => 'title', 996 996 'post_type' => 'page', 997 997 ) … … 1204 1204 'post_author' => self::$editor_id, 1205 1205 'post_status' => 'publish', 1206 'post_content' => rand_str(),1207 'post_title' => rand_str(),1206 'post_content' => 'content', 1207 'post_title' => 'title', 1208 1208 'post_date_gmt' => '2014-01-01 12:00:00', 1209 1209 );
Note: See TracChangeset
for help on using the changeset viewer.