Skip to content

Commit

Permalink
collationFixedCriterion
Browse files Browse the repository at this point in the history
  • Loading branch information
micszo committed Jan 30, 2025
1 parent 21c4c83 commit 9b3fe8c
Showing 1 changed file with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,20 @@ public function testIndexingRemoteId(Criterion $criterion): void

$contentId = self::$contentIdByRemoteIdIndex[$remoteId];

// ensure correct collation for comparison
$collationFixedCriterion = new Criterion\RemoteId([

Check failure on line 59 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (7.4)

Parameter #1 $value of class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\RemoteId constructor expects array<string>|string, array<int, Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd> given.

Check failure on line 59 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (8.0)

Parameter #1 $value of class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\RemoteId constructor expects array<string>|string, array<int, Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd> given.

Check failure on line 59 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (8.1)

Parameter #1 $value of class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\RemoteId constructor expects array<string>|string, array<int, Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd> given.
new Criterion\LogicalAnd([

Check failure on line 60 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (7.4)

Parameter #1 $criteria of class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd constructor expects array<Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion>, array<int, Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Comparison> given.

Check failure on line 60 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (8.0)

Parameter #1 $criteria of class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd constructor expects array<Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion>, array<int, Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Comparison> given.

Check failure on line 60 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (8.1)

Parameter #1 $criteria of class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\LogicalAnd constructor expects array<Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion>, array<int, Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Comparison> given.
new Criterion\Comparison(

Check failure on line 61 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (7.4)

Instantiated class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Comparison not found.

Check failure on line 61 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (8.0)

Instantiated class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Comparison not found.

Check failure on line 61 in tests/integration/Core/Repository/SearchService/RemoteIdIndexingTest.php

View workflow job for this annotation

GitHub Actions / Unit tests & SQLite integration tests (8.1)

Instantiated class Ibexa\Contracts\Core\Repository\Values\Content\Query\Criterion\Comparison not found.
'remote_id',
Criterion\Operator::EQ,
$remoteId . " COLLATE utf8mb4_unicode_ci"
)
])
]);

// test searching using both Content & Location remote IDs for both Content items
$query = new Query();
$query->filter = $criterion;
$query->filter = $collationFixedCriterion;
$result = $searchService->findContent($query);
self::assertSame(
1,
Expand All @@ -67,7 +78,7 @@ public function testIndexingRemoteId(Criterion $criterion): void
self::assertSame($contentId, $result->searchHits[0]->valueObject->id);

$query = new LocationQuery();
$query->filter = $criterion;
$query->filter = $collationFixedCriterion;
$result = $searchService->findLocations($query);
self::assertSame(
1,
Expand Down

0 comments on commit 9b3fe8c

Please sign in to comment.