Changeset 54425
- Timestamp:
- 10/09/2022 04:26:57 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/manager.php
r54424 r54425 35 35 36 36 /** 37 * Whether any attachments have been created in the current test run. 38 * 39 * @var bool 40 */ 41 private $attachments_created = false; 42 43 /** 37 44 * Set up before class. 38 45 * … … 57 64 */ 58 65 public function tear_down() { 66 if ( true === $this->attachments_created ) { 67 $this->remove_added_uploads(); 68 $this->attachments_created = false; 69 } 70 59 71 $this->manager = null; 60 72 unset( $GLOBALS['wp_customize'] ); … … 545 557 ) 546 558 ); 559 560 $this->attachments_created = true; 561 547 562 $existing_published_home_page_id = self::factory()->post->create( 548 563 array(
Note: See TracChangeset
for help on using the changeset viewer.