Changeset 54424
- Timestamp:
- 10/09/2022 01:45:23 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r54402 r54424 35 35 36 36 /** 37 * Path to test file 1.38 *39 * @var string40 */41 private $test_file;42 43 /**44 * Path to test file 2.45 *46 * @var string47 */48 private $test_file2;49 50 /**51 37 * Set up before class. 52 38 * … … 65 51 require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; 66 52 $this->manager = $this->instantiate(); 67 68 $orig_file = DIR_TESTDATA . '/images/canola.jpg';69 $this->test_file = get_temp_dir() . 'canola.jpg';70 copy( $orig_file, $this->test_file );71 $orig_file2 = DIR_TESTDATA . '/images/waffles.jpg';72 $this->test_file2 = get_temp_dir() . 'waffles.jpg';73 copy( $orig_file2, $this->test_file2 );74 53 } 75 54 … … 558 537 559 538 $existing_canola_attachment_id = self::factory()->attachment->create_object( 560 $this->test_file,539 DIR_TESTDATA . '/images/canola.jpg', 561 540 0, 562 541 array( … … 632 611 'post_content' => 'Waffles Attachment Description', 633 612 'post_excerpt' => 'Waffles Attachment Caption', 634 'file' => $this->test_file2,613 'file' => DIR_TESTDATA . '/images/waffles.jpg', 635 614 ), 636 615 'canola' => array( … … 638 617 'post_content' => 'Canola Attachment Description', 639 618 'post_excerpt' => 'Canola Attachment Caption', 640 'file' => $this->test_file,619 'file' => DIR_TESTDATA . '/images/canola.jpg', 641 620 ), 642 621 ),
Note: See TracChangeset
for help on using the changeset viewer.