Customize Unit Tests: also remove_action( 'after_setup_theme', 'twentysixteen_setup' )
. TwentyFifteen is already removed.
See #31550. git-svn-id: https://develop.svn.wordpress.org/trunk@35754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
69900349ca
commit
aad857409b
@ -36,7 +36,9 @@ class Tests_WP_Customize_Widgets extends WP_UnitTestCase {
|
|||||||
$this->assertArrayHasKey( 2, $widget_categories );
|
$this->assertArrayHasKey( 2, $widget_categories );
|
||||||
$this->assertEquals( '', $widget_categories[2]['title'] );
|
$this->assertEquals( '', $widget_categories[2]['title'] );
|
||||||
|
|
||||||
remove_action( 'after_setup_theme', 'twentyfifteen_setup' ); // @todo We should not be including a theme anyway
|
// @todo We should not be including a theme anyway
|
||||||
|
remove_action( 'after_setup_theme', 'twentyfifteen_setup' );
|
||||||
|
remove_action( 'after_setup_theme', 'twentysixteen_setup' );
|
||||||
|
|
||||||
$user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );
|
$user_id = self::factory()->user->create( array( 'role' => 'administrator' ) );
|
||||||
wp_set_current_user( $user_id );
|
wp_set_current_user( $user_id );
|
||||||
|
Loading…
Reference in New Issue
Block a user