Changeset 38355 for trunk/tests/phpunit/tests/image/site_icon.php
- Timestamp:
- 08/25/2016 07:08:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/image/site_icon.php
r35309 r38355 1 1 <?php 2 3 2 /** 4 3 * Tests for the WP_Site_Icon class. … … 6 5 * @group site_icon 7 6 */ 7 8 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' ); 9 8 10 class Tests_WP_Site_Icon extends WP_UnitTestCase { 9 public $wp_site_icon; 11 protected $wp_site_icon; 12 10 13 public $attachment_id = 0; 11 14 … … 13 16 parent::setUp(); 14 17 15 require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; 16 $this->wp_site_icon = $GLOBALS['wp_site_icon']; 18 $this->wp_site_icon = new WP_Site_Icon(); 17 19 } 18 20 19 21 function tearDown() { 20 $this-> site_icon = null;22 $this->_remove_custom_logo(); 21 23 $this->remove_added_uploads(); 22 24 parent::tearDown(); 25 } 26 27 function _remove_custom_logo() { 28 remove_theme_mod( 'custom_logo' ); 23 29 } 24 30
Note: See TracChangeset
for help on using the changeset viewer.