@@ -150,7 +150,8 @@ public function testBuildWithoutSynonymsProvided(string $locale)
150
150
$ analysisFilters ,
151
151
'Analysis filters must not contain synonyms when they are not defined '
152
152
);
153
- $ this ->assertNotContains ($ synonymsFilterName ,
153
+ $ this ->assertNotContains (
154
+ $ synonymsFilterName ,
154
155
$ prefixSearchAnalyzerFilters ,
155
156
'The prefix_search analyzer must not include synonyms filter when it is not present '
156
157
);
@@ -180,8 +181,8 @@ public function testBuildWithProvidedSynonyms(string $locale)
180
181
];
181
182
182
183
$ expectedFilter = [
183
- 'type ' => 'synonym_graph ' ,
184
- 'synonyms ' => $ synonyms
184
+ 'type ' => 'synonym_graph ' ,
185
+ 'synonyms ' => $ synonyms
185
186
];
186
187
187
188
$ this ->localeResolver ->expects ($ this ->once ())
@@ -208,11 +209,13 @@ public function testBuildWithProvidedSynonyms(string $locale)
208
209
$ analysisFilters ,
209
210
'Analysis synonyms filter must match the expected result '
210
211
);
211
- $ this ->assertContains ($ synonymsFilterName ,
212
+ $ this ->assertContains (
213
+ $ synonymsFilterName ,
212
214
$ prefixSearchAnalyzerFilters ,
213
215
'The prefix_search analyzer must include synonyms filter '
214
216
);
215
- $ this ->assertContains ($ synonymsFilterName ,
217
+ $ this ->assertContains (
218
+ $ synonymsFilterName ,
216
219
$ skuPrefixSearchAnalyzerFilters ,
217
220
'The sku_prefix_search analyzer must include synonyms filter '
218
221
);
0 commit comments