Tests: Update unit tests to account for lazy-loading being disabled for custom logos by default.

Follow-up to [48870].

Merges [48874] to the 5.5 branch.
See #50933.

git-svn-id: https://develop.svn.wordpress.org/branches/5.5@48875 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-08-27 01:56:05 +00:00
parent 686262686d
commit 8cab089517

View File

@ -337,7 +337,8 @@ class Tests_General_Template extends WP_UnitTestCase {
$this->_set_custom_logo();
$custom_logo_attr = array(
'class' => 'custom-logo',
'class' => 'custom-logo',
'loading' => false,
);
// If the logo alt attribute is empty, use the site title.
@ -368,7 +369,8 @@ class Tests_General_Template extends WP_UnitTestCase {
'full',
false,
array(
'class' => 'custom-logo',
'class' => 'custom-logo',
'loading' => false,
)
);