From c77798da22ec3366f9a4cc5ddf5de02523751fa8 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 27 Aug 2020 01:53:48 +0000 Subject: [PATCH] Tests: Update unit tests to account for lazy-loading being disabled for custom logos by default. Follow-up to [48870]. See #50933. git-svn-id: https://develop.svn.wordpress.org/trunk@48874 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/general/template.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/tests/general/template.php b/tests/phpunit/tests/general/template.php index bb66abcbee..3080066dbe 100644 --- a/tests/phpunit/tests/general/template.php +++ b/tests/phpunit/tests/general/template.php @@ -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, ) );