Make WordPress Core

Changeset 29894


Ignore:
Timestamp:
10/14/2014 07:54:03 PM (10 years ago)
Author:
nacin
Message:

Fix theme support unit test added in [27220].

The test assumed that the active theme either had no menu locations, or a subset of 'primary' and 'secondary'. see #26900.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/support.php

    r27220 r29894  
    163163    function test_supports_menus() {
    164164        // Start fresh
     165        foreach ( get_registered_nav_menus() as $location => $desc ) {
     166            unregister_nav_menu( $location );
     167        }
    165168        _remove_theme_support( 'menus' );
    166169        $this->assertFalse( current_theme_supports( 'menus' ) );
Note: See TracChangeset for help on using the changeset viewer.