diff --git a/tests/integration/Core/Repository/FieldType/ImageIntegrationTest.php b/tests/integration/Core/Repository/FieldType/ImageIntegrationTest.php index 8fa2e3e74e..ff9555acc0 100644 --- a/tests/integration/Core/Repository/FieldType/ImageIntegrationTest.php +++ b/tests/integration/Core/Repository/FieldType/ImageIntegrationTest.php @@ -9,6 +9,7 @@ use Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException; use Ibexa\Contracts\Core\Repository\Values\Content\Content; use Ibexa\Contracts\Core\Repository\Values\Content\Field; +use Ibexa\Contracts\Core\Test\Repository\SetupFactory\Legacy; use Ibexa\Core\FieldType\Image\Value as ImageValue; /** @@ -341,6 +342,7 @@ public function provideToHashData() 'width' => null, 'height' => null, 'additionalData' => [], + 'mime' => null, ], ], [ @@ -354,6 +356,7 @@ public function provideToHashData() 'uri' => "/$path", 'width' => 123, 'height' => 456, + 'mime' => 'image/png', ] ), [ @@ -368,6 +371,7 @@ public function provideToHashData() 'width' => 123, 'height' => 456, 'additionalData' => [], + 'mime' => 'image/png', ], ], ]; @@ -573,6 +577,15 @@ public function testUpdateImageAltTextOnly(): void ); } + protected function checkSearchEngineSupport(): void + { + if ($this->getSetupFactory() instanceof Legacy) { + $this->markTestSkipped( + "'ezimage' field type is not searchable with Legacy Search Engine" + ); + } + } + protected function getValidSearchValueOne() { return new ImageValue( diff --git a/tests/lib/FieldType/ImageTest.php b/tests/lib/FieldType/ImageTest.php index f89f425011..126639d1e1 100644 --- a/tests/lib/FieldType/ImageTest.php +++ b/tests/lib/FieldType/ImageTest.php @@ -336,6 +336,7 @@ public function provideInputForToHash() 'uri' => 'http://' . $this->getImageInputPath(), 'width' => 123, 'height' => 456, + 'mime' => 'image/jpeg', ] ), [ @@ -350,6 +351,7 @@ public function provideInputForToHash() 'width' => 123, 'height' => 456, 'additionalData' => [], + 'mime' => 'image/jpeg', ], ], // BC with 5.0 (EZP-20948). Path can be used as input instead of $inputUri. @@ -362,6 +364,7 @@ public function provideInputForToHash() 'alternativeText' => 'This is so Sindelfingen!', 'imageId' => '123-12345', 'uri' => 'http://' . $this->getImageInputPath(), + 'mime' => null, ] ), [ @@ -376,6 +379,7 @@ public function provideInputForToHash() 'width' => null, 'height' => null, 'additionalData' => [], + 'mime' => null, ], ], ];