Skip to content

Commit 3d3588b

Browse files
authored
IBX-8378: [Tests] Fixed setting image field as searchable for tests (#403)
For more details see https://issues.ibexa.co/browse/IBX-8378 and #403 Key changes: * [Tests] Fixed setting image field as searchable for integration tests ---- Co-Authored-By: Vidar Langseid <[email protected]>
1 parent b692e9b commit 3d3588b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration/Core/Repository/SearchServiceImageTest.php

+6
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,11 @@ private function ensureImageFieldTypeIsSearchable(ContentType $contentType): voi
365365
);
366366
}
367367

368+
/**
369+
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
370+
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\BadStateException
371+
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException
372+
*/
368373
private function setFieldTypeAsSearchable(
369374
ContentTypeDraft $contentTypeDraft,
370375
FieldDefinition $fieldDefinition
@@ -379,5 +384,6 @@ private function setFieldTypeAsSearchable(
379384
$fieldDefinition,
380385
$fieldDefinitionUpdateStruct
381386
);
387+
$contentTypeService->publishContentTypeDraft($contentTypeDraft);
382388
}
383389
}

0 commit comments

Comments
 (0)