Changeset 51587 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 08/09/2021 07:08:09 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r51568 r51587 129 129 'post_content' => rand_str(), 130 130 'post_title' => rand_str(), 131 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date),131 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 132 132 ); 133 133 … … 165 165 'post_content' => rand_str(), 166 166 'post_title' => rand_str(), 167 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date_1),167 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 168 168 ); 169 169 … … 183 183 184 184 $post['ID'] = $id; 185 $post['post_date'] = strftime( '%Y-%m-%d %H:%M:%S', $future_date_2);185 $post['post_date'] = date_format( date_create( "@{$future_date_2}" ), 'Y-m-d H:i:s' ); 186 186 $post['post_date_gmt'] = null; 187 187 wp_update_post( $post ); … … 210 210 'post_content' => rand_str(), 211 211 'post_title' => rand_str(), 212 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date_1),212 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 213 213 ); 214 214 … … 228 228 229 229 $post['ID'] = $id; 230 $post['post_date'] = strftime( '%Y-%m-%d %H:%M:%S', $future_date_2);230 $post['post_date'] = date_format( date_create( "@{$future_date_2}" ), 'Y-m-d H:i:s' ); 231 231 $post['post_date_gmt'] = null; 232 232 wp_update_post( $post ); … … 252 252 'post_content' => rand_str(), 253 253 'post_title' => rand_str(), 254 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date),254 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 255 255 ); 256 256 … … 287 287 'post_content' => rand_str(), 288 288 'post_title' => rand_str(), 289 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date_1),289 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 290 290 ); 291 291 … … 331 331 'post_content' => rand_str(), 332 332 'post_title' => rand_str(), 333 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date_1),333 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 334 334 ); 335 335 … … 373 373 'post_content' => rand_str(), 374 374 'post_title' => rand_str(), 375 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date),375 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 376 376 ); 377 377 … … 430 430 'post_content' => rand_str(), 431 431 'post_title' => rand_str(), 432 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date_1),432 'post_date' => date_format( date_create( "@{$future_date_1}" ), 'Y-m-d H:i:s' ), 433 433 ); 434 434 … … 536 536 'post_content' => rand_str(), 537 537 'post_title' => rand_str(), 538 'post_date' => strftime( '%Y-%m-%d %H:%M:%S', $future_date),538 'post_date' => date_format( date_create( "@{$future_date}" ), 'Y-m-d H:i:s' ), 539 539 ); 540 540
Note: See TracChangeset
for help on using the changeset viewer.