From ee5f858436c9c5826f19bca66ad69c19344b20ae Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 1 Apr 2019 16:48:32 +0000 Subject: [PATCH] PHPCS: Fix WPCS violation in [45088]. See #38168. git-svn-id: https://develop.svn.wordpress.org/trunk@45090 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/post/getBodyClass.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/phpunit/tests/post/getBodyClass.php b/tests/phpunit/tests/post/getBodyClass.php index c631199aa9..236d78e2ba 100644 --- a/tests/phpunit/tests/post/getBodyClass.php +++ b/tests/phpunit/tests/post/getBodyClass.php @@ -210,13 +210,13 @@ class Tests_Post_GetBodyClass extends WP_UnitTestCase { add_theme_support( 'custom-background', array( 'default-color', '#ffffff' ) ); set_theme_mod( 'background_color', '#000000' ); - $class = get_body_class(); - $current_theme_supports_custom_background = current_theme_supports( 'custom-background' ); + $class = get_body_class(); + $theme_supports_background = current_theme_supports( 'custom-background' ); remove_theme_mod( 'background_color' ); remove_theme_support( 'custom-background' ); - $this->assertTrue( $current_theme_supports_custom_background ); + $this->assertTrue( $theme_supports_background ); $this->assertContains( 'custom-background', $class ); } @@ -226,12 +226,12 @@ class Tests_Post_GetBodyClass extends WP_UnitTestCase { public function test_custom_background_class_is_not_added_when_theme_support_is_missing() { set_theme_mod( 'background_color', '#000000' ); - $class = get_body_class(); - $current_theme_supports_custom_background = current_theme_supports( 'custom-background' ); + $class = get_body_class(); + $theme_supports_background = current_theme_supports( 'custom-background' ); remove_theme_mod( 'background_color' ); - $this->assertFalse( $current_theme_supports_custom_background ); + $this->assertFalse( $theme_supports_background ); $this->assertNotContains( 'custom-background', $class ); }