Changeset 43571 for trunk/tests/phpunit/tests/media.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/media.php
r42837 r43571 404 404 // Add attachment metadata without sizes. 405 405 wp_update_attachment_metadata( 406 $id, array( 406 $id, 407 array( 407 408 'width' => 50, 408 409 'height' => 50, … … 461 462 $post_id = self::factory()->post->create(); 462 463 $attachment_id = self::factory()->attachment->create_object( 463 $this->img_name, $post_id, array( 464 $this->img_name, 465 $post_id, 466 array( 464 467 'post_mime_type' => 'image/jpeg', 465 468 'post_type' => 'attachment', … … 479 482 foreach ( range( 1, 3 ) as $i ) { 480 483 $attachment_id = self::factory()->attachment->create_object( 481 "image$i.jpg", 0, array( 484 "image$i.jpg", 485 0, 486 array( 482 487 'post_mime_type' => 'image/jpeg', 483 488 'post_type' => 'attachment', … … 494 499 foreach ( range( 4, 6 ) as $i ) { 495 500 $attachment_id = self::factory()->attachment->create_object( 496 "image$i.jpg", 0, array( 501 "image$i.jpg", 502 0, 503 array( 497 504 'post_mime_type' => 'image/jpeg', 498 505 'post_type' => 'attachment', … … 625 632 foreach ( range( 1, 3 ) as $i ) { 626 633 $attachment_id = self::factory()->attachment->create_object( 627 "image$i.jpg", 0, array( 634 "image$i.jpg", 635 0, 636 array( 628 637 'post_mime_type' => 'image/jpeg', 629 638 'post_type' => 'attachment', … … 640 649 foreach ( range( 4, 6 ) as $i ) { 641 650 $attachment_id = self::factory()->attachment->create_object( 642 "image$i.jpg", 0, array( 651 "image$i.jpg", 652 0, 653 array( 643 654 'post_mime_type' => 'image/jpeg', 644 655 'post_type' => 'attachment', … … 1036 1047 $image_path = '2014/11/' . $this->img_name; 1037 1048 $attachment_id = self::factory()->attachment->create_object( 1038 $image_path, 0, array( 1049 $image_path, 1050 0, 1051 array( 1039 1052 'post_mime_type' => 'image/jpeg', 1040 1053 'post_type' => 'attachment', … … 1049 1062 $image_path = '2014/11/' . $this->img_name; 1050 1063 $attachment_id = self::factory()->attachment->create_object( 1051 $image_path, 0, array( 1064 $image_path, 1065 0, 1066 array( 1052 1067 'post_mime_type' => 'image/jpeg', 1053 1068 'post_type' => 'attachment', … … 1065 1080 $image_path = '2014/11/' . $this->img_name; 1066 1081 $attachment_id = self::factory()->attachment->create_object( 1067 $image_path, 0, array( 1082 $image_path, 1083 0, 1084 array( 1068 1085 'post_mime_type' => 'image/jpeg', 1069 1086 'post_type' => 'attachment', … … 1111 1128 1112 1129 $post_id = media_handle_upload( 1113 'upload', 0, array(), array( 1130 'upload', 1131 0, 1132 array(), 1133 array( 1114 1134 'action' => 'test_iptc_upload', 1115 1135 'test_form' => false, … … 1147 1167 1148 1168 $post_id = media_handle_upload( 1149 'upload', 0, array(), array( 1169 'upload', 1170 0, 1171 array(), 1172 array( 1150 1173 'action' => 'test_upload_titles', 1151 1174 'test_form' => false, … … 1313 1336 $post_id = self::factory()->post->create(); 1314 1337 $attachment_id = self::factory()->attachment->create_object( 1315 $this->img_name, $post_id, array( 1338 $this->img_name, 1339 $post_id, 1340 array( 1316 1341 'post_mime_type' => 'image/jpeg', 1317 1342 'post_type' => 'attachment', … … 1334 1359 $post_id = self::factory()->post->create(); 1335 1360 $attachment_id = self::factory()->attachment->create_object( 1336 $this->img_name, $post_id, array( 1361 $this->img_name, 1362 $post_id, 1363 array( 1337 1364 'post_mime_type' => 'image/jpeg', 1338 1365 'post_type' => 'attachment', … … 1352 1379 $post_id = self::factory()->post->create(); 1353 1380 $attachment_id = self::factory()->attachment->create_object( 1354 $this->img_name, $post_id, array( 1381 $this->img_name, 1382 $post_id, 1383 array( 1355 1384 'post_mime_type' => 'image/jpeg', 1356 1385 'post_type' => 'attachment', … … 2377 2406 2378 2407 $post_id = media_handle_upload( 2379 'upload', $parent_id, array(), array( 2408 'upload', 2409 $parent_id, 2410 array(), 2411 array( 2380 2412 'action' => 'test_iptc_upload', 2381 2413 'test_form' => false, … … 2426 2458 2427 2459 $post_id = media_handle_upload( 2428 'upload', $parent_id, array(), array( 2460 'upload', 2461 $parent_id, 2462 array(), 2463 array( 2429 2464 'action' => 'test_iptc_upload', 2430 2465 'test_form' => false,
Note: See TracChangeset
for help on using the changeset viewer.