forked from ezsystems/ezpublish-api
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IntegrationTests] Add some missing fixtures for Search tests
- Loading branch information
Showing
6 changed files
with
346 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 102 additions & 0 deletions
102
Repository/Tests/_fixtures/Elasticsearch/Location/SortDateModified.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state( | ||
array( | ||
'facets' => array(), | ||
'searchHits' => array( | ||
0 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 4, | ||
'title' => 'Users', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
1 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 12, | ||
'title' => 'Administrator users', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
2 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 13, | ||
'title' => 'Editors', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
3 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 42, | ||
'title' => 'Anonymous Users', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
4 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 10, | ||
'title' => 'Anonymous User', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
5 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 14, | ||
'title' => 'Administrator User', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
6 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 59, | ||
'title' => 'Partners', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
7 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 11, | ||
'title' => 'Members', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => 1, | ||
'totalCount' => 8, | ||
) | ||
); |
102 changes: 102 additions & 0 deletions
102
Repository/Tests/_fixtures/Elasticsearch/SortDateModified.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state( | ||
array( | ||
'facets' => array(), | ||
'searchHits' => array( | ||
0 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 4, | ||
'title' => 'Users', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
1 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 12, | ||
'title' => 'Administrator users', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
2 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 13, | ||
'title' => 'Editors', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
3 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 42, | ||
'title' => 'Anonymous Users', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
4 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 10, | ||
'title' => 'Anonymous User', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
5 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 14, | ||
'title' => 'Administrator User', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
6 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 59, | ||
'title' => 'Partners', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
7 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 11, | ||
'title' => 'Members', | ||
), | ||
'score' => 1, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => 1, | ||
'totalCount' => 8, | ||
) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state(array( | ||
'facets' => | ||
array ( | ||
), | ||
'searchHits' => | ||
array ( | ||
0 => | ||
eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state(array( | ||
'valueObject' => | ||
array ( | ||
'id' => 10, | ||
'title' => 'Anonymous User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
)), | ||
1 => | ||
eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state(array( | ||
'valueObject' => | ||
array ( | ||
'id' => 14, | ||
'title' => 'Administrator User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
)), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => NULL, | ||
'totalCount' => 2, | ||
)); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
<?php | ||
|
||
return eZ\Publish\API\Repository\Values\Content\Search\SearchResult::__set_state( | ||
array( | ||
'facets' => array(), | ||
'searchHits' => array( | ||
0 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 4, | ||
'title' => 'Users', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
1 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 12, | ||
'title' => 'Administrator users', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
2 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 13, | ||
'title' => 'Editors', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
3 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 42, | ||
'title' => 'Anonymous Users', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
4 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 10, | ||
'title' => 'Anonymous User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
5 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 14, | ||
'title' => 'Administrator User', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
6 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 59, | ||
'title' => 'Partners', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
7 => eZ\Publish\API\Repository\Values\Content\Search\SearchHit::__set_state( | ||
array( | ||
'valueObject' => array( | ||
'id' => 11, | ||
'title' => 'Members', | ||
), | ||
'score' => NULL, | ||
'index' => NULL, | ||
'highlight' => NULL, | ||
) | ||
), | ||
), | ||
'spellSuggestion' => NULL, | ||
'time' => 1, | ||
'timedOut' => NULL, | ||
'maxScore' => NULL, | ||
'totalCount' => 8, | ||
) | ||
); |