Changeset 53789
- Timestamp:
- 07/27/2022 04:27:18 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/wpInsertPost.php
r53788 r53789 688 688 $post_id = self::factory()->post->create( 689 689 array( 690 'post_status' 690 'post_status' => 'publish', 691 691 ) 692 692 ); … … 703 703 $post_id = self::factory()->post->create( 704 704 array( 705 'post_status' 706 'post_type' 705 'post_status' => 'publish', 706 'post_type' => 'page', 707 707 ) 708 708 ); … … 1347 1347 */ 1348 1348 public function data_various_post_types() { 1349 return array( 1350 array( 1351 'mapped_meta_caps', 1352 ), 1353 array( 1354 'unmapped_meta_caps', 1355 ), 1356 array( 1357 'post', 1358 ), 1359 ); 1349 $post_types = array( 1350 'mapped_meta_caps', 1351 'unmapped_meta_caps', 1352 'post', 1353 ); 1354 1355 return $this->text_array_to_dataprovider( $post_types ); 1360 1356 } 1361 1357 … … 1366 1362 */ 1367 1363 public function data_various_post_statuses() { 1368 return array( 1369 array( 1370 'draft', 1371 ), 1372 array( 1373 'pending', 1374 ), 1375 array( 1376 'private', 1377 ), 1378 array( 1379 'publish', 1380 ), 1381 ); 1364 $post_statuses = array( 1365 'draft', 1366 'pending', 1367 'private', 1368 'publish', 1369 ); 1370 1371 return $this->text_array_to_dataprovider( $post_statuses ); 1382 1372 } 1383 1373
Note: See TracChangeset
for help on using the changeset viewer.