From 6ebff324b2e3ad04ec93398614f97aa20661626e Mon Sep 17 00:00:00 2001 From: Jake Spurlock Date: Fri, 7 Aug 2020 20:42:04 +0000 Subject: [PATCH] Themes: Update the `test_theme_supports_custom_logo` to check for the `unlink-homepage-logo` property. See #37011, [48757]. Props TimothyBlynJacobs, whyisjake. git-svn-id: https://develop.svn.wordpress.org/trunk@48758 602fd350-edb4-49c9-b593-d223f7449a82 --- .../phpunit/tests/rest-api/rest-themes-controller.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/phpunit/tests/rest-api/rest-themes-controller.php b/tests/phpunit/tests/rest-api/rest-themes-controller.php index 0f39cfa7ab..8ebf661b62 100644 --- a/tests/phpunit/tests/rest-api/rest-themes-controller.php +++ b/tests/phpunit/tests/rest-api/rest-themes-controller.php @@ -574,11 +574,12 @@ class WP_Test_REST_Themes_Controller extends WP_Test_REST_Controller_Testcase { public function test_theme_supports_custom_logo() { remove_theme_support( 'custom-logo' ); $wordpress_logo = array( - 'height' => 100, - 'width' => 400, - 'flex-height' => true, - 'flex-width' => true, - 'header-text' => array( 'site-title', 'site-description' ), + 'height' => 100, + 'width' => 400, + 'flex-height' => true, + 'flex-width' => true, + 'header-text' => array( 'site-title', 'site-description' ), + 'unlink-homepage-logo' => false, ); add_theme_support( 'custom-logo', $wordpress_logo ); $response = self::perform_active_theme_request();