diff --git a/core/modules/image/tests/src/Kernel/ImageItemTest.php b/core/modules/image/tests/src/Kernel/ImageItemTest.php
index dea4534..85aa212 100644
--- a/core/modules/image/tests/src/Kernel/ImageItemTest.php
+++ b/core/modules/image/tests/src/Kernel/ImageItemTest.php
@@ -129,4 +129,21 @@ public function testImageItem() {
     $this->assertEqual($entity->image_test->entity->get('filemime')->value, 'image/jpeg');
   }
 
+  /**
+   * Tests the cache tags from image fields.
+   */
+  function testImageFieldCacheTags() {
+    // Create a test entity with the image field set.
+    $entity = EntityTest::create();
+    $entity->image_test->generateSampleItems(2);
+    $entity->name->value = $this->randomMachineName();
+    $entity->save();
+    $entity = EntityTest::load($entity->id());
+
+    // Generate the render array to verify if the cache tags are as expected.
+    $build = $entity->image_test->view([]);
+    $this->assertEqual($entity->image_test[0]->entity->getCacheTags(), $build[0]['#cache']['tags'], 'First image cache tags is as expected');
+    $this->assertEqual($entity->image_test[1]->entity->getCacheTags(), $build[1]['#cache']['tags'], 'Second image cache tags is as expected');
+  }
+
 }
