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
This commit is contained in:
Jake Spurlock 2020-08-07 20:42:04 +00:00
parent a5771dc74b
commit 6ebff324b2

View File

@ -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();