Code Duplication    Length = 8-8 lines in 2 locations

tests/phpunit/tests/customize/manager.php 2 locations

@@ 2275-2282 (lines=8) @@
2272
	 *
2273
	 * @return array Components.
2274
	 */
2275
	function return_array_containing_widgets( $components, $customize_manager ) {
2276
		$this->assertInternalType( 'array', $components );
2277
		$this->assertContains( 'widgets', $components );
2278
		$this->assertContains( 'nav_menus', $components );
2279
		$this->assertInternalType( 'array', $components );
2280
		$this->assertInstanceOf( 'WP_Customize_Manager', $customize_manager );
2281
		return array( 'widgets' );
2282
	}
2283
2284
	/**
2285
	 * @see Tests_WP_Customize_Manager::test_customize_loaded_components_filter()
@@ 2292-2299 (lines=8) @@
2289
	 *
2290
	 * @return array Components.
2291
	 */
2292
	function return_array_containing_nav_menus( $components, $customize_manager ) {
2293
		$this->assertInternalType( 'array', $components );
2294
		$this->assertContains( 'widgets', $components );
2295
		$this->assertContains( 'nav_menus', $components );
2296
		$this->assertInternalType( 'array', $components );
2297
		$this->assertInstanceOf( 'WP_Customize_Manager', $customize_manager );
2298
		return array( 'nav_menus' );
2299
	}
2300
2301
	/**
2302
	 * @ticket 30225