Changeset 38355 for trunk/tests/phpunit/tests/general/template.php
- Timestamp:
- 08/25/2016 07:08:38 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/general/template.php
r37866 r38355 1 1 <?php 2 3 2 /** 4 3 * A set of unit tests for functions in wp-includes/general-template.php 5 4 * 6 5 * @group template 6 * @group site_icon 7 7 */ 8 9 require_once( ABSPATH . 'wp-admin/includes/class-wp-site-icon.php' ); 10 8 11 class Tests_General_Template extends WP_UnitTestCase { 9 10 public $wp_site_icon; 12 protected $wp_site_icon; 11 13 public $site_icon_id; 12 14 public $site_icon_url; … … 18 20 parent::setUp(); 19 21 20 require_once ABSPATH . 'wp-admin/includes/class-wp-site-icon.php'; 21 $this->wp_site_icon = $GLOBALS['wp_site_icon']; 22 $this->wp_site_icon = new WP_Site_Icon(); 22 23 } 23 24
Note: See TracChangeset
for help on using the changeset viewer.