Changeset 54519
- Timestamp:
- 10/15/2022 01:08:33 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r54426 r54519 548 548 add_theme_support( 'custom-background' ); 549 549 550 // For existing attachment, copy into uploads. 551 $canola_image_file = DIR_TESTDATA . '/images/canola.jpg'; 552 $canola_image_upload = wp_upload_bits( wp_basename( $canola_image_file ), null, file_get_contents( $canola_image_file ) ); 553 $existing_canola_file = $canola_image_upload['file']; 554 550 555 $existing_canola_attachment_id = self::factory()->attachment->create_object( 551 DIR_TESTDATA . '/images/canola.jpg',556 $existing_canola_file, 552 557 0, 553 558 array( … … 632 637 'post_content' => 'Canola Attachment Description', 633 638 'post_excerpt' => 'Canola Attachment Caption', 634 'file' => DIR_TESTDATA . '/images/canola.jpg',639 'file' => $existing_canola_file, 635 640 ), 636 641 ),
Note: See TracChangeset
for help on using the changeset viewer.