Skip to content

Commit

Permalink
[Tests] Fixed setting image field as searchable for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Jul 10, 2024
1 parent b692e9b commit 5120304
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/integration/Core/Repository/SearchServiceImageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,11 @@ private function ensureImageFieldTypeIsSearchable(ContentType $contentType): voi
);
}

/**
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\InvalidArgumentException
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\BadStateException
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException
*/
private function setFieldTypeAsSearchable(
ContentTypeDraft $contentTypeDraft,
FieldDefinition $fieldDefinition
Expand All @@ -379,5 +384,6 @@ private function setFieldTypeAsSearchable(
$fieldDefinition,
$fieldDefinitionUpdateStruct
);
$contentTypeService->publishContentTypeDraft($contentTypeDraft);
}
}

0 comments on commit 5120304

Please sign in to comment.