Code Duplication    Length = 9-10 lines in 3 locations

tests/core/nav-menu-item-setting.php 1 location

@@ 21-30 (lines=10) @@
18
	 *
19
	 * @see WP_UnitTestCase::setup()
20
	 */
21
	function setUp() {
22
		parent::setUp();
23
		require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' );
24
		//require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
25
		wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );
26
27
		global $wp_customize;
28
		$this->wp_customize = new WP_Customize_Manager();
29
		$wp_customize = $this->wp_customize;
30
	}
31
32
	/**
33
	 * Delete the $wp_customize global when cleaning up scope.

tests/core/nav-menu-setting.php 1 location

@@ 22-31 (lines=10) @@
19
	 *
20
	 * @see WP_UnitTestCase::setup()
21
	 */
22
	function setUp() {
23
		parent::setUp();
24
		require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' );
25
		//require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
26
		wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );
27
28
		global $wp_customize;
29
		$this->wp_customize = new WP_Customize_Manager();
30
		$wp_customize = $this->wp_customize;
31
	}
32
33
	/**
34
	 * Delete the $wp_customize global when cleaning up scope.

tests/core/nav-menus.php 1 location

@@ 22-30 (lines=9) @@
19
	 *
20
	 * @see WP_UnitTestCase::setup()
21
	 */
22
	function setUp() {
23
		parent::setUp();
24
		require_once( WP_FIELDS_API_DIR . 'implementation/wp-includes/class-wp-customize-manager.php' );
25
		//require_once ABSPATH . WPINC . '/class-wp-customize-manager.php';
26
		wp_set_current_user( $this->factory->user->create( array( 'role' => 'administrator' ) ) );
27
		global $wp_customize;
28
		$this->wp_customize = new WP_Customize_Manager();
29
		$wp_customize = $this->wp_customize;
30
	}
31
32
	/**
33
	 * Delete the $wp_customize global when cleaning up scope.