File tree 1 file changed +13
-2
lines changed
tests/integration/Core/Repository/SearchService
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,20 @@ public function testIndexingRemoteId(Criterion $criterion): void
55
55
56
56
$ contentId = self ::$ contentIdByRemoteIdIndex [$ remoteId ];
57
57
58
+ // ensure correct collation for comparison
59
+ $ collationFixedCriterion = new Criterion \RemoteId ([
60
+ new Criterion \LogicalAnd ([
61
+ new Criterion \Comparison (
62
+ 'remote_id ' ,
63
+ Criterion \Operator::EQ ,
64
+ $ remoteId . " COLLATE utf8mb4_unicode_ci "
65
+ )
66
+ ])
67
+ ]);
68
+
58
69
// test searching using both Content & Location remote IDs for both Content items
59
70
$ query = new Query ();
60
- $ query ->filter = $ criterion ;
71
+ $ query ->filter = $ collationFixedCriterion ;
61
72
$ result = $ searchService ->findContent ($ query );
62
73
self ::assertSame (
63
74
1 ,
@@ -67,7 +78,7 @@ public function testIndexingRemoteId(Criterion $criterion): void
67
78
self ::assertSame ($ contentId , $ result ->searchHits [0 ]->valueObject ->id );
68
79
69
80
$ query = new LocationQuery ();
70
- $ query ->filter = $ criterion ;
81
+ $ query ->filter = $ collationFixedCriterion ;
71
82
$ result = $ searchService ->findLocations ($ query );
72
83
self ::assertSame (
73
84
1 ,
You can’t perform that action at this time.
0 commit comments