@@ -39,6 +39,7 @@ public static function dataTestConfigurationTree(): iterable
39
39
'batchSize ' => 500 ,
40
40
'serializer ' => 'serializer ' ,
41
41
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
42
+ 'http_client ' => 'psr18.http_client ' ,
42
43
'indices ' => [],
43
44
],
44
45
];
@@ -59,6 +60,7 @@ public static function dataTestConfigurationTree(): iterable
59
60
'batchSize ' => 100 ,
60
61
'serializer ' => 'serializer ' ,
61
62
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
63
+ 'http_client ' => 'psr18.http_client ' ,
62
64
'indices ' => [],
63
65
],
64
66
];
@@ -85,6 +87,7 @@ public static function dataTestConfigurationTree(): iterable
85
87
'batchSize ' => 500 ,
86
88
'serializer ' => 'serializer ' ,
87
89
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
90
+ 'http_client ' => 'psr18.http_client ' ,
88
91
'indices ' => [
89
92
0 => [
90
93
'name ' => 'posts ' ,
@@ -156,6 +159,7 @@ public static function dataTestConfigurationTree(): iterable
156
159
'batchSize ' => 500 ,
157
160
'serializer ' => 'serializer ' ,
158
161
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
162
+ 'http_client ' => 'psr18.http_client ' ,
159
163
],
160
164
];
161
165
@@ -191,6 +195,7 @@ public static function dataTestConfigurationTree(): iterable
191
195
'batchSize ' => 500 ,
192
196
'serializer ' => 'serializer ' ,
193
197
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
198
+ 'http_client ' => 'psr18.http_client ' ,
194
199
],
195
200
];
196
201
@@ -228,6 +233,7 @@ public static function dataTestConfigurationTree(): iterable
228
233
'batchSize ' => 500 ,
229
234
'serializer ' => 'serializer ' ,
230
235
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
236
+ 'http_client ' => 'psr18.http_client ' ,
231
237
],
232
238
];
233
239
@@ -265,6 +271,25 @@ public static function dataTestConfigurationTree(): iterable
265
271
'batchSize ' => 500 ,
266
272
'serializer ' => 'serializer ' ,
267
273
'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
274
+ 'http_client ' => 'psr18.http_client ' ,
275
+ ],
276
+ ];
277
+
278
+ yield 'custom http client ' => [
279
+ 'inputConfig ' => [
280
+ 'meilisearch ' => [
281
+ 'http_client ' => 'acme.http_client ' ,
282
+ ],
283
+ ],
284
+ 'expectedConfig ' => [
285
+ 'url ' => 'http://localhost:7700 ' ,
286
+ 'prefix ' => null ,
287
+ 'indices ' => [],
288
+ 'nbResults ' => 20 ,
289
+ 'batchSize ' => 500 ,
290
+ 'serializer ' => 'serializer ' ,
291
+ 'doctrineSubscribedEvents ' => ['postPersist ' , 'postUpdate ' , 'preRemove ' ],
292
+ 'http_client ' => 'acme.http_client ' ,
268
293
],
269
294
];
270
295
}
0 commit comments