Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 2387-2394 (lines=8) @@
2384
     *
2385
     * @return array Components.
2386
     */
2387
    function return_array_containing_widgets( $components, $customize_manager ) 
2388
    {
2389
        $this->assertInternalType('array', $components);
2390
        $this->assertContains('widgets', $components);
2391
        $this->assertContains('nav_menus', $components);
2392
        $this->assertInternalType('array', $components);
2393
        $this->assertInstanceOf('WP_Customize_Manager', $customize_manager);
2394
        return array( 'widgets' );
2395
    }
2396
2397
    /**
@@ 2405-2412 (lines=8) @@
2402
     *
2403
     * @return array Components.
2404
     */
2405
    function return_array_containing_nav_menus( $components, $customize_manager ) 
2406
    {
2407
        $this->assertInternalType('array', $components);
2408
        $this->assertContains('widgets', $components);
2409
        $this->assertContains('nav_menus', $components);
2410
        $this->assertInternalType('array', $components);
2411
        $this->assertInstanceOf('WP_Customize_Manager', $customize_manager);
2412
        return array( 'nav_menus' );
2413
    }
2414
2415
    /**