File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function testStandardReplicaConfig(): void
96
96
97
97
// Assert standard replica ranking config
98
98
$ this ->assertArrayHasKey ('ranking ' , $ replicaSettings );
99
- $ this ->assertContains ("$ sortDir( $ sortAttr) " , $ replicaSettings ['ranking ' ]);
99
+ $ this ->assertEquals ("$ sortDir( $ sortAttr) " , array_shift ( $ replicaSettings ['ranking ' ]) );
100
100
101
101
}
102
102
@@ -154,6 +154,10 @@ public function testVirtualReplicaConfig(): void
154
154
$ this ->assertArrayHasKey ('primary ' , $ replicaSettings );
155
155
$ this ->assertEquals ($ indexName , $ replicaSettings ['primary ' ]);
156
156
157
+ // Assert virtual replica ranking config
158
+ $ this ->assertArrayHasKey ('customRanking ' , $ replicaSettings );
159
+ $ this ->assertEquals ("$ sortDir( $ sortAttr) " , array_shift ($ replicaSettings ['customRanking ' ]));
160
+
157
161
// Restore prior state (for this test only)
158
162
$ this ->algoliaHelper ->setSettings ($ indexName , $ ogAlgoliaSettings );
159
163
$ this ->setConfig ('algoliasearch_instant/instant/is_instant_enabled ' , 0 );
You can’t perform that action at this time.
0 commit comments