From 3640f40a127db47fa10afef7751b7b340b4e65f0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 14 Oct 2014 19:54:03 +0000 Subject: [PATCH] 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 --- tests/phpunit/tests/theme/support.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/tests/theme/support.php b/tests/phpunit/tests/theme/support.php index c0e71c139d..10d8298668 100644 --- a/tests/phpunit/tests/theme/support.php +++ b/tests/phpunit/tests/theme/support.php @@ -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' ) );