tests/core/manager.php 1 location
|
@@ 10-17 (lines=8) @@
|
7 |
|
*/ |
8 |
|
class Tests_WP_Customize_Manager extends WP_UnitTestCase { |
9 |
|
|
10 |
|
function setUp() { |
11 |
|
parent::setUp(); |
12 |
|
require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' ); |
13 |
|
//require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); |
14 |
|
$GLOBALS['wp_customize'] = new WP_Customize_Manager(); |
15 |
|
$this->manager = $GLOBALS['wp_customize']; |
16 |
|
$this->undefined = new stdClass(); |
17 |
|
} |
18 |
|
|
19 |
|
function tearDown() { |
20 |
|
$this->manager = null; |
tests/core/panel.php 1 location
|
@@ 15-22 (lines=8) @@
|
12 |
|
*/ |
13 |
|
protected $manager; |
14 |
|
|
15 |
|
function setUp() { |
16 |
|
parent::setUp(); |
17 |
|
require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' ); |
18 |
|
//require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); |
19 |
|
$GLOBALS['wp_customize'] = new WP_Customize_Manager(); |
20 |
|
$this->manager = $GLOBALS['wp_customize']; |
21 |
|
$this->undefined = new stdClass(); |
22 |
|
} |
23 |
|
|
24 |
|
function tearDown() { |
25 |
|
$this->manager = null; |
tests/core/section.php 1 location
|
@@ 15-22 (lines=8) @@
|
12 |
|
*/ |
13 |
|
protected $manager; |
14 |
|
|
15 |
|
function setUp() { |
16 |
|
parent::setUp(); |
17 |
|
require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' ); |
18 |
|
//require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); |
19 |
|
$GLOBALS['wp_customize'] = new WP_Customize_Manager(); |
20 |
|
$this->manager = $GLOBALS['wp_customize']; |
21 |
|
$this->undefined = new stdClass(); |
22 |
|
} |
23 |
|
|
24 |
|
function tearDown() { |
25 |
|
$this->manager = null; |
tests/core/setting.php 1 location
|
@@ 20-27 (lines=8) @@
|
17 |
|
*/ |
18 |
|
public $undefined; |
19 |
|
|
20 |
|
function setUp() { |
21 |
|
parent::setUp(); |
22 |
|
require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' ); |
23 |
|
//require_once( ABSPATH . WPINC . '/class-wp-customize-manager.php' ); |
24 |
|
$GLOBALS['wp_customize'] = new WP_Customize_Manager(); |
25 |
|
$this->manager = $GLOBALS['wp_customize']; |
26 |
|
$this->undefined = new stdClass(); |
27 |
|
} |
28 |
|
|
29 |
|
function tearDown() { |
30 |
|
$this->manager = null; |