Skip to content

Commit 7ea03e6

Browse files
algolia-botdamcou
andcommitted
chore: generated code for commit eec85ae. [skip ci]
Co-authored-by: Damien Couchez <[email protected]>
1 parent eec85ae commit 7ea03e6

File tree

7 files changed

+103
-0
lines changed

7 files changed

+103
-0
lines changed

tests/output/php/src/methods/requests/AbtestingTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ public function testDel0()
138138
[
139139
'path' => '/1/test/minimal',
140140
'method' => 'DELETE',
141+
'body' => null,
141142
],
142143
]);
143144
}
@@ -158,6 +159,7 @@ public function testDel1()
158159
[
159160
'path' => '/1/test/all',
160161
'method' => 'DELETE',
162+
'body' => null,
161163
'queryParameters' => json_decode(
162164
"{\"query\":\"parameters\"}",
163165
true
@@ -179,6 +181,7 @@ public function testDeleteABTest0()
179181
[
180182
'path' => '/2/abtests/42',
181183
'method' => 'DELETE',
184+
'body' => null,
182185
],
183186
]);
184187
}
@@ -196,6 +199,7 @@ public function testGet0()
196199
[
197200
'path' => '/1/test/minimal',
198201
'method' => 'GET',
202+
'body' => null,
199203
],
200204
]);
201205
}
@@ -216,6 +220,7 @@ public function testGet1()
216220
[
217221
'path' => '/1/test/all',
218222
'method' => 'GET',
223+
'body' => null,
219224
'queryParameters' => json_decode(
220225
"{\"query\":\"parameters\"}",
221226
true
@@ -237,6 +242,7 @@ public function testGetABTest0()
237242
[
238243
'path' => '/2/abtests/42',
239244
'method' => 'GET',
245+
'body' => null,
240246
],
241247
]);
242248
}
@@ -257,6 +263,7 @@ public function testListABTests0()
257263
[
258264
'path' => '/2/abtests',
259265
'method' => 'GET',
266+
'body' => null,
260267
'queryParameters' => json_decode(
261268
"{\"offset\":\"42\",\"limit\":\"21\"}",
262269
true
@@ -671,6 +678,7 @@ public function testStopABTest0()
671678
[
672679
'path' => '/2/abtests/42/stop',
673680
'method' => 'POST',
681+
'body' => json_decode(''),
674682
],
675683
]);
676684
}

tests/output/php/src/methods/requests/AnalyticsTest.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public function testDel0()
110110
[
111111
'path' => '/1/test/minimal',
112112
'method' => 'DELETE',
113+
'body' => null,
113114
],
114115
]);
115116
}
@@ -130,6 +131,7 @@ public function testDel1()
130131
[
131132
'path' => '/1/test/all',
132133
'method' => 'DELETE',
134+
'body' => null,
133135
'queryParameters' => json_decode(
134136
"{\"query\":\"parameters\"}",
135137
true
@@ -151,6 +153,7 @@ public function testGet0()
151153
[
152154
'path' => '/1/test/minimal',
153155
'method' => 'GET',
156+
'body' => null,
154157
],
155158
]);
156159
}
@@ -171,6 +174,7 @@ public function testGet1()
171174
[
172175
'path' => '/1/test/all',
173176
'method' => 'GET',
177+
'body' => null,
174178
'queryParameters' => json_decode(
175179
"{\"query\":\"parameters\"}",
176180
true
@@ -192,6 +196,7 @@ public function testGetAverageClickPosition0()
192196
[
193197
'path' => '/2/clicks/averageClickPosition',
194198
'method' => 'GET',
199+
'body' => null,
195200
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
196201
],
197202
]);
@@ -215,6 +220,7 @@ public function testGetAverageClickPosition1()
215220
[
216221
'path' => '/2/clicks/averageClickPosition',
217222
'method' => 'GET',
223+
'body' => null,
218224
'queryParameters' => json_decode(
219225
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
220226
true
@@ -236,6 +242,7 @@ public function testGetClickPositions0()
236242
[
237243
'path' => '/2/clicks/positions',
238244
'method' => 'GET',
245+
'body' => null,
239246
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
240247
],
241248
]);
@@ -259,6 +266,7 @@ public function testGetClickPositions1()
259266
[
260267
'path' => '/2/clicks/positions',
261268
'method' => 'GET',
269+
'body' => null,
262270
'queryParameters' => json_decode(
263271
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
264272
true
@@ -280,6 +288,7 @@ public function testGetClickThroughRate0()
280288
[
281289
'path' => '/2/clicks/clickThroughRate',
282290
'method' => 'GET',
291+
'body' => null,
283292
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
284293
],
285294
]);
@@ -303,6 +312,7 @@ public function testGetClickThroughRate1()
303312
[
304313
'path' => '/2/clicks/clickThroughRate',
305314
'method' => 'GET',
315+
'body' => null,
306316
'queryParameters' => json_decode(
307317
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
308318
true
@@ -324,6 +334,7 @@ public function testGetConversationRate0()
324334
[
325335
'path' => '/2/conversions/conversionRate',
326336
'method' => 'GET',
337+
'body' => null,
327338
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
328339
],
329340
]);
@@ -347,6 +358,7 @@ public function testGetConversationRate1()
347358
[
348359
'path' => '/2/conversions/conversionRate',
349360
'method' => 'GET',
361+
'body' => null,
350362
'queryParameters' => json_decode(
351363
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
352364
true
@@ -368,6 +380,7 @@ public function testGetNoClickRate0()
368380
[
369381
'path' => '/2/searches/noClickRate',
370382
'method' => 'GET',
383+
'body' => null,
371384
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
372385
],
373386
]);
@@ -391,6 +404,7 @@ public function testGetNoClickRate1()
391404
[
392405
'path' => '/2/searches/noClickRate',
393406
'method' => 'GET',
407+
'body' => null,
394408
'queryParameters' => json_decode(
395409
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
396410
true
@@ -412,6 +426,7 @@ public function testGetNoResultsRate0()
412426
[
413427
'path' => '/2/searches/noResultRate',
414428
'method' => 'GET',
429+
'body' => null,
415430
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
416431
],
417432
]);
@@ -435,6 +450,7 @@ public function testGetNoResultsRate1()
435450
[
436451
'path' => '/2/searches/noResultRate',
437452
'method' => 'GET',
453+
'body' => null,
438454
'queryParameters' => json_decode(
439455
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
440456
true
@@ -456,6 +472,7 @@ public function testGetSearchesCount0()
456472
[
457473
'path' => '/2/searches/count',
458474
'method' => 'GET',
475+
'body' => null,
459476
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
460477
],
461478
]);
@@ -479,6 +496,7 @@ public function testGetSearchesCount1()
479496
[
480497
'path' => '/2/searches/count',
481498
'method' => 'GET',
499+
'body' => null,
482500
'queryParameters' => json_decode(
483501
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
484502
true
@@ -500,6 +518,7 @@ public function testGetSearchesNoClicks0()
500518
[
501519
'path' => '/2/searches/noClicks',
502520
'method' => 'GET',
521+
'body' => null,
503522
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
504523
],
505524
]);
@@ -525,6 +544,7 @@ public function testGetSearchesNoClicks1()
525544
[
526545
'path' => '/2/searches/noClicks',
527546
'method' => 'GET',
547+
'body' => null,
528548
'queryParameters' => json_decode(
529549
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
530550
true
@@ -546,6 +566,7 @@ public function testGetSearchesNoResults0()
546566
[
547567
'path' => '/2/searches/noResults',
548568
'method' => 'GET',
569+
'body' => null,
549570
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
550571
],
551572
]);
@@ -571,6 +592,7 @@ public function testGetSearchesNoResults1()
571592
[
572593
'path' => '/2/searches/noResults',
573594
'method' => 'GET',
595+
'body' => null,
574596
'queryParameters' => json_decode(
575597
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
576598
true
@@ -592,6 +614,7 @@ public function testGetStatus0()
592614
[
593615
'path' => '/2/status',
594616
'method' => 'GET',
617+
'body' => null,
595618
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
596619
],
597620
]);
@@ -610,6 +633,7 @@ public function testGetTopCountries0()
610633
[
611634
'path' => '/2/countries',
612635
'method' => 'GET',
636+
'body' => null,
613637
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
614638
],
615639
]);
@@ -635,6 +659,7 @@ public function testGetTopCountries1()
635659
[
636660
'path' => '/2/countries',
637661
'method' => 'GET',
662+
'body' => null,
638663
'queryParameters' => json_decode(
639664
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
640665
true
@@ -656,6 +681,7 @@ public function testGetTopFilterAttributes0()
656681
[
657682
'path' => '/2/filters',
658683
'method' => 'GET',
684+
'body' => null,
659685
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
660686
],
661687
]);
@@ -682,6 +708,7 @@ public function testGetTopFilterAttributes1()
682708
[
683709
'path' => '/2/filters',
684710
'method' => 'GET',
711+
'body' => null,
685712
'queryParameters' => json_decode(
686713
"{\"index\":\"index\",\"search\":\"mySearch\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
687714
true
@@ -706,6 +733,7 @@ public function testGetTopFilterForAttribute0()
706733
[
707734
'path' => '/2/filters/myAttribute',
708735
'method' => 'GET',
736+
'body' => null,
709737
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
710738
],
711739
]);
@@ -727,6 +755,7 @@ public function testGetTopFilterForAttribute1()
727755
[
728756
'path' => '/2/filters/myAttribute1%2CmyAttribute2',
729757
'method' => 'GET',
758+
'body' => null,
730759
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
731760
],
732761
]);
@@ -754,6 +783,7 @@ public function testGetTopFilterForAttribute2()
754783
[
755784
'path' => '/2/filters/myAttribute',
756785
'method' => 'GET',
786+
'body' => null,
757787
'queryParameters' => json_decode(
758788
"{\"index\":\"index\",\"search\":\"mySearch\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
759789
true
@@ -784,6 +814,7 @@ public function testGetTopFilterForAttribute3()
784814
[
785815
'path' => '/2/filters/myAttribute1%2CmyAttribute2',
786816
'method' => 'GET',
817+
'body' => null,
787818
'queryParameters' => json_decode(
788819
"{\"index\":\"index\",\"search\":\"mySearch\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
789820
true
@@ -805,6 +836,7 @@ public function testGetTopFiltersNoResults0()
805836
[
806837
'path' => '/2/filters/noResults',
807838
'method' => 'GET',
839+
'body' => null,
808840
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
809841
],
810842
]);
@@ -831,6 +863,7 @@ public function testGetTopFiltersNoResults1()
831863
[
832864
'path' => '/2/filters/noResults',
833865
'method' => 'GET',
866+
'body' => null,
834867
'queryParameters' => json_decode(
835868
"{\"index\":\"index\",\"search\":\"mySearch\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
836869
true
@@ -852,6 +885,7 @@ public function testGetTopHits0()
852885
[
853886
'path' => '/2/hits',
854887
'method' => 'GET',
888+
'body' => null,
855889
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
856890
],
857891
]);
@@ -879,6 +913,7 @@ public function testGetTopHits1()
879913
[
880914
'path' => '/2/hits',
881915
'method' => 'GET',
916+
'body' => null,
882917
'queryParameters' => json_decode(
883918
"{\"index\":\"index\",\"search\":\"mySearch\",\"clickAnalytics\":\"true\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
884919
true
@@ -900,6 +935,7 @@ public function testGetTopSearches0()
900935
[
901936
'path' => '/2/searches',
902937
'method' => 'GET',
938+
'body' => null,
903939
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
904940
],
905941
]);
@@ -928,6 +964,7 @@ public function testGetTopSearches1()
928964
[
929965
'path' => '/2/searches',
930966
'method' => 'GET',
967+
'body' => null,
931968
'queryParameters' => json_decode(
932969
"{\"index\":\"index\",\"clickAnalytics\":\"true\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"orderBy\":\"searchCount\",\"direction\":\"asc\",\"limit\":\"21\",\"offset\":\"42\",\"tags\":\"tag\"}",
933970
true
@@ -949,6 +986,7 @@ public function testGetUsersCount0()
949986
[
950987
'path' => '/2/users/count',
951988
'method' => 'GET',
989+
'body' => null,
952990
'queryParameters' => json_decode("{\"index\":\"index\"}", true),
953991
],
954992
]);
@@ -972,6 +1010,7 @@ public function testGetUsersCount1()
9721010
[
9731011
'path' => '/2/users/count',
9741012
'method' => 'GET',
1013+
'body' => null,
9751014
'queryParameters' => json_decode(
9761015
"{\"index\":\"index\",\"startDate\":\"1999-09-19\",\"endDate\":\"2001-01-01\",\"tags\":\"tag\"}",
9771016
true

0 commit comments

Comments
 (0)