Skip to content

Commit

Permalink
IBX-8378: [Tests] Fixed setting image field as searchable for tests (#…
Browse files Browse the repository at this point in the history
…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 <vidarl@users.noreply.github.com>
  • Loading branch information
alongosz authored Jul 10, 2024
1 parent b692e9b commit 3d3588b
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 3d3588b

Please sign in to comment.