Skip to content

Commit 905916a

Browse files
authored
Merge pull request #77 from commercetools/gen-sdk-updates
2 parents 334ea98 + db78582 commit 905916a

File tree

1,152 files changed

+15167
-1942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,152 files changed

+15167
-1942
lines changed

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyCustomObjectsByContainerByKeyTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,29 +126,29 @@ function (ApiRequestBuilder $builder): RequestInterface {
126126
'delete',
127127
'test_projectKey/custom-objects/test_container/test_key?version=version',
128128
],
129-
'ByProjectKeyCustomObjectsByContainerByKeyDelete_withDataErasure' => [
129+
'ByProjectKeyCustomObjectsByContainerByKeyDelete_withExpand' => [
130130
function (ApiRequestBuilder $builder): RequestInterface {
131131
return $builder
132132
->withProjectKey('test_projectKey')
133133
->customObjects()
134134
->withContainerAndKey('test_container', 'test_key')
135135
->delete()
136-
->withDataErasure('dataErasure');
136+
->withExpand('expand');
137137
},
138138
'delete',
139-
'test_projectKey/custom-objects/test_container/test_key?dataErasure=dataErasure',
139+
'test_projectKey/custom-objects/test_container/test_key?expand=expand',
140140
],
141-
'ByProjectKeyCustomObjectsByContainerByKeyDelete_withExpand' => [
141+
'ByProjectKeyCustomObjectsByContainerByKeyDelete_withDataErasure' => [
142142
function (ApiRequestBuilder $builder): RequestInterface {
143143
return $builder
144144
->withProjectKey('test_projectKey')
145145
->customObjects()
146146
->withContainerAndKey('test_container', 'test_key')
147147
->delete()
148-
->withExpand('expand');
148+
->withDataErasure('dataErasure');
149149
},
150150
'delete',
151-
'test_projectKey/custom-objects/test_container/test_key?expand=expand',
151+
'test_projectKey/custom-objects/test_container/test_key?dataErasure=dataErasure',
152152
],
153153
'ByProjectKeyCustomObjectsByContainerByKeyDelete' => [
154154
function (ApiRequestBuilder $builder): RequestInterface {

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyCustomObjectsByContainerTest.php

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ public function testExecuteServerException(callable $builderFunction)
9090
public function getRequests()
9191
{
9292
return [
93+
'ByProjectKeyCustomObjectsByContainerGet_withSort' => [
94+
function (ApiRequestBuilder $builder): RequestInterface {
95+
return $builder
96+
->withProjectKey('test_projectKey')
97+
->customObjects()
98+
->withContainer('test_container')
99+
->get()
100+
->withSort('sort');
101+
},
102+
'get',
103+
'test_projectKey/custom-objects/test_container?sort=sort',
104+
],
93105
'ByProjectKeyCustomObjectsByContainerGet_withWhere' => [
94106
function (ApiRequestBuilder $builder): RequestInterface {
95107
return $builder
@@ -102,6 +114,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
102114
'get',
103115
'test_projectKey/custom-objects/test_container?where=where',
104116
],
117+
'ByProjectKeyCustomObjectsByContainerGet_withExpand' => [
118+
function (ApiRequestBuilder $builder): RequestInterface {
119+
return $builder
120+
->withProjectKey('test_projectKey')
121+
->customObjects()
122+
->withContainer('test_container')
123+
->get()
124+
->withExpand('expand');
125+
},
126+
'get',
127+
'test_projectKey/custom-objects/test_container?expand=expand',
128+
],
105129
'ByProjectKeyCustomObjectsByContainerGet_withPredicateVar' => [
106130
function (ApiRequestBuilder $builder): RequestInterface {
107131
return $builder
@@ -114,17 +138,41 @@ function (ApiRequestBuilder $builder): RequestInterface {
114138
'get',
115139
'test_projectKey/custom-objects/test_container?var.varName=var.varName',
116140
],
117-
'ByProjectKeyCustomObjectsByContainerGet_withExpand' => [
141+
'ByProjectKeyCustomObjectsByContainerGet_withLimit' => [
118142
function (ApiRequestBuilder $builder): RequestInterface {
119143
return $builder
120144
->withProjectKey('test_projectKey')
121145
->customObjects()
122146
->withContainer('test_container')
123147
->get()
124-
->withExpand('expand');
148+
->withLimit('limit');
125149
},
126150
'get',
127-
'test_projectKey/custom-objects/test_container?expand=expand',
151+
'test_projectKey/custom-objects/test_container?limit=limit',
152+
],
153+
'ByProjectKeyCustomObjectsByContainerGet_withOffset' => [
154+
function (ApiRequestBuilder $builder): RequestInterface {
155+
return $builder
156+
->withProjectKey('test_projectKey')
157+
->customObjects()
158+
->withContainer('test_container')
159+
->get()
160+
->withOffset('offset');
161+
},
162+
'get',
163+
'test_projectKey/custom-objects/test_container?offset=offset',
164+
],
165+
'ByProjectKeyCustomObjectsByContainerGet_withWithTotal' => [
166+
function (ApiRequestBuilder $builder): RequestInterface {
167+
return $builder
168+
->withProjectKey('test_projectKey')
169+
->customObjects()
170+
->withContainer('test_container')
171+
->get()
172+
->withWithTotal('withTotal');
173+
},
174+
'get',
175+
'test_projectKey/custom-objects/test_container?withTotal=withTotal',
128176
],
129177
'ByProjectKeyCustomObjectsByContainerGet' => [
130178
function (ApiRequestBuilder $builder): RequestInterface {

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyProductDiscountsMatchingTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,45 +138,45 @@ function (ApiRequestBuilder $builder): RequestInterface {
138138
},
139139
200
140140
],
141-
'ByProjectKeyProductDiscountsMatchingPost_400' => [
141+
'ByProjectKeyProductDiscountsMatchingPost_404' => [
142142
function (ApiRequestBuilder $builder): RequestInterface {
143143
return $builder
144144
->withProjectKey("projectKey")
145145
->productDiscounts()
146146
->matching()
147147
->post(null);
148148
},
149-
400
149+
404
150150
],
151-
'ByProjectKeyProductDiscountsMatchingPost_401' => [
151+
'ByProjectKeyProductDiscountsMatchingPost_400' => [
152152
function (ApiRequestBuilder $builder): RequestInterface {
153153
return $builder
154154
->withProjectKey("projectKey")
155155
->productDiscounts()
156156
->matching()
157157
->post(null);
158158
},
159-
401
159+
400
160160
],
161-
'ByProjectKeyProductDiscountsMatchingPost_403' => [
161+
'ByProjectKeyProductDiscountsMatchingPost_401' => [
162162
function (ApiRequestBuilder $builder): RequestInterface {
163163
return $builder
164164
->withProjectKey("projectKey")
165165
->productDiscounts()
166166
->matching()
167167
->post(null);
168168
},
169-
403
169+
401
170170
],
171-
'ByProjectKeyProductDiscountsMatchingPost_404' => [
171+
'ByProjectKeyProductDiscountsMatchingPost_403' => [
172172
function (ApiRequestBuilder $builder): RequestInterface {
173173
return $builder
174174
->withProjectKey("projectKey")
175175
->productDiscounts()
176176
->matching()
177177
->post(null);
178178
},
179-
404
179+
403
180180
],
181181
'ByProjectKeyProductDiscountsMatchingPost_500' => [
182182
function (ApiRequestBuilder $builder): RequestInterface {

0 commit comments

Comments
 (0)