Skip to content

Commit f504f2c

Browse files
committed
fix: php and maybe more
1 parent 503faa1 commit f504f2c

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

specs/collections/spec.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,10 @@ paths:
9393
$ref: 'paths/collectionID.yml'
9494
/1/collections/{collectionID}/commit:
9595
$ref: 'paths/commitCollection.yml'
96+
97+
# ###############
98+
# ### Helpers ###
99+
# ###############
100+
101+
/setClientApiKey:
102+
$ref: '../common/helpers/setClientApiKey.yml#/method'
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
[
2+
{
3+
"testName": "sets the correct host",
4+
"autoCreateClient": false,
5+
"steps": [
6+
{
7+
"type": "createClient",
8+
"parameters": {
9+
"appId": "my-app-id",
10+
"apiKey": "my-api-key"
11+
}
12+
},
13+
{
14+
"type": "method",
15+
"method": "listCollections",
16+
"parameters": {
17+
"indexName": "indexName"
18+
},
19+
"expected": {
20+
"type": "host",
21+
"match": "experiences.algolia.com"
22+
}
23+
}
24+
]
25+
},
26+
{
27+
"testName": "listCollections throws without index",
28+
"steps": [
29+
{
30+
"type": "method",
31+
"method": "listCollections",
32+
"parameters": {
33+
"indexName": null
34+
},
35+
"expected": {
36+
"error": "Parameter `indexName` is required when calling `listCollections`."
37+
}
38+
}
39+
]
40+
}
41+
]

0 commit comments

Comments
 (0)