From 219e90a6757565839baae6f1d62488630877c915 Mon Sep 17 00:00:00 2001 From: Rosie Le Faive Date: Tue, 17 May 2022 09:45:23 -0300 Subject: [PATCH] Add image loading. --- tests/src/Functional/IslandoraImageFormatterTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/Functional/IslandoraImageFormatterTest.php b/tests/src/Functional/IslandoraImageFormatterTest.php index 2793cf49..3c646f25 100644 --- a/tests/src/Functional/IslandoraImageFormatterTest.php +++ b/tests/src/Functional/IslandoraImageFormatterTest.php @@ -32,7 +32,7 @@ class IslandoraImageFormatterTest extends IslandoraFunctionalTestBase { // Also, only show the image on display to remove clutter. $display_options = [ 'type' => 'islandora_image', - 'settings' => ['image_style' => NULL, 'image_link' => 'content'], + 'settings' => ['image_style' => NULL, 'image_link' => 'content', 'image_loading' => 'lazy'], ]; $display = $this->container->get('entity_display.repository')->getViewDisplay('media', $testImageMediaType->id(), 'default'); $display->setComponent('field_media_image', $display_options)