Skip to content

Commit

Permalink
Additional test
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Feb 22, 2024
1 parent c75ae15 commit 2da61ed
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration/Core/Repository/SearchServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,14 @@ public function getContentQuerySearches()
],
$fixtureDir . 'Visibility.php',
],
[
[
'query' => new Criterion\IsContainer(true),
'sortClauses' => [new SortClause\ContentId()],
'limit' => 5,
],
$fixtureDir . 'IsContainerTrue.php',
],
[
[
'query' => new Criterion\IsContainer(false),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?php

/**
* @copyright Copyright (C) Ibexa AS. All rights reserved.
* @license For full copyright and license information view LICENSE file distributed with this source code.
*/
use Ibexa\Contracts\Core\Repository\Values\Content\Search\SearchHit;
use Ibexa\Contracts\Core\Repository\Values\Content\Search\SearchResult;

return SearchResult::__set_state([
'facets' => [],
'searchHits' => [
SearchHit::__set_state([
'valueObject' => [
'id' => 4,
'title' => 'Users',
],
'score' => null,
'index' => null,
'highlight' => null,
'matchedTranslation' => 'eng-US',
]),
SearchHit::__set_state([
'valueObject' => [
'id' => 11,
'title' => 'Members',
],
'score' => null,
'index' => null,
'highlight' => null,
'matchedTranslation' => 'eng-US',
]),
SearchHit::__set_state([
'valueObject' => [
'id' => 12,
'title' => 'Administrator users',
],
'score' => null,
'index' => null,
'highlight' => null,
'matchedTranslation' => 'eng-US',
]),
SearchHit::__set_state([
'valueObject' => [
'id' => 13,
'title' => 'Editors',
],
'score' => null,
'index' => null,
'highlight' => null,
'matchedTranslation' => 'eng-US',
]),
SearchHit::__set_state([
'valueObject' => [
'id' => 41,
'title' => 'Media',
],
'score' => null,
'index' => null,
'highlight' => null,
'matchedTranslation' => 'eng-US',
]),
],
'spellSuggestion' => null,
'time' => 1,
'timedOut' => null,
'maxScore' => null,
'totalCount' => 14,
]);

0 comments on commit 2da61ed

Please sign in to comment.