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.


git-svn-id: https://develop.svn.wordpress.org/trunk@29894 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2014-10-14 19:54:03 +00:00
parent 9966625f84
commit 3640f40a12

View File

@ -162,6 +162,9 @@ class Tests_Theme_Support extends WP_UnitTestCase {
*/
function test_supports_menus() {
// Start fresh
foreach ( get_registered_nav_menus() as $location => $desc ) {
unregister_nav_menu( $location );
}
_remove_theme_support( 'menus' );
$this->assertFalse( current_theme_supports( 'menus' ) );