Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit a27e750

Browse files
author
Jens Schulze
committed
Merge branch 'hotfix/fix-psr7-relative-path'
2 parents 12c76b6 + e32d015 commit a27e750

File tree

101 files changed

+327
-327
lines changed

Some content is hidden

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

101 files changed

+327
-327
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"php": ">=5.4",
2626
"psr/log": "^1.0",
2727
"guzzlehttp/guzzle": "^5.0 || ^6.0",
28-
"guzzlehttp/psr7": "^1.0",
28+
"guzzlehttp/psr7": "^1.1",
2929
"pimple/pimple": "^3.0"
3030
},
3131
"require-dev": {

features/request/Cart/CartCreate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: I want to create a new cart
66

77
Scenario: create a anonymous cart
88
When i want to create a "cart"
9-
Then the path should be "/carts"
9+
Then the path should be "carts"
1010
And the method should be "POST"
1111
And the request should be
1212
"""

features/request/Cart/CartDelete.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Feature: I want to delete a cart
22
Scenario: Delete cart
33
Given a "cart" is identified by "id" and "version"
44
And i want to delete a "Cart"
5-
Then the path should be "/carts/id?version=version"
5+
Then the path should be "carts/id?version=version"
66
And the method should be "DELETE"

features/request/Cart/CartQuery.feature

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,49 @@ Feature: I want to query carts
22
Scenario: Fetch a cart by id
33
Given a "cart" is identified by "id"
44
Given i want to fetch a "Cart"
5-
Then the path should be "/carts/id"
5+
Then the path should be "carts/id"
66
And the method should be "GET"
77

88
Scenario: Query carts
99
Given a "cart" is identified by "id"
1010
Given i want to fetch a "cart" by customerId
1111
And query by customers id "id"
12-
Then the path should be "/carts?customerId=id"
12+
Then the path should be "carts?customerId=id"
1313
And the method should be "GET"
1414

1515
Scenario: Query customers with filter applied
1616
Given i want to query "Carts"
1717
And filter them with criteria 'name="Peter"'
18-
Then the path should be "/carts?where=name%3D%22Peter%22"
18+
Then the path should be "carts?where=name%3D%22Peter%22"
1919
And the method should be "GET"
2020

2121
Scenario: Query customers with filter applied
2222
Given i want to query "Carts"
2323
And filter them with criteria 'name="Peter"'
24-
Then the path should be "/carts?where=name%3D%22Peter%22"
24+
Then the path should be "carts?where=name%3D%22Peter%22"
2525
And the method should be "GET"
2626

2727
Scenario: Query customers with limit
2828
Given i want to query "Carts"
2929
And limit the result to "10"
30-
Then the path should be "/carts?limit=10"
30+
Then the path should be "carts?limit=10"
3131
And the method should be "GET"
3232

3333
Scenario: Query customers with offset
3434
Given i want to query "Carts"
3535
And offset the result with "10"
36-
Then the path should be "/carts?offset=10"
36+
Then the path should be "carts?offset=10"
3737
And the method should be "GET"
3838

3939
Scenario: Query customers sorted
4040
Given i want to query "Carts"
4141
And sort them by "name"
42-
Then the path should be "/carts?sort=name"
42+
Then the path should be "carts?sort=name"
4343
And the method should be "GET"
4444

4545
Scenario: Query parameters should be sorted
4646
Given i want to query "Carts"
4747
And sort them by "name"
4848
And offset the result with "10"
49-
Then the path should be "/carts?offset=10&sort=name"
49+
Then the path should be "carts?offset=10&sort=name"
5050
And the method should be "GET"

features/request/Cart/CartUpdate.feature

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Feature: I want to update a cart
2020
And the variantId is "1" as "int"
2121
And the quantity is "3" as "int"
2222
When i want to update a "Cart"
23-
Then the path should be "/carts/id"
23+
Then the path should be "carts/id"
2424
And the method should be "POST"
2525
And the request should be
2626
"""
@@ -42,7 +42,7 @@ Feature: I want to update a cart
4242
And the lineItemId is "lineItemId-1"
4343
And set the quantity to "3" as "int"
4444
When i want to update a "Cart"
45-
Then the path should be "/carts/id"
45+
Then the path should be "carts/id"
4646
And the method should be "POST"
4747
And the request should be
4848
"""
@@ -63,7 +63,7 @@ Feature: I want to update a cart
6363
And the lineItemId is "lineItemId-1"
6464
And the quantity is "3" as "int"
6565
When i want to update a "Cart"
66-
Then the path should be "/carts/id"
66+
Then the path should be "carts/id"
6767
And the method should be "POST"
6868
And the request should be
6969
"""
@@ -87,7 +87,7 @@ Feature: I want to update a cart
8787
And the slug is "my-custom-line-item"
8888
And the "taxCategory" is "taxCategory" object
8989
When i want to update a "Cart"
90-
Then the path should be "/carts/id"
90+
Then the path should be "carts/id"
9191
And the method should be "POST"
9292
And the request should be
9393
"""
@@ -123,7 +123,7 @@ Feature: I want to update a cart
123123
Given i want to "removeCustomLineItem" of "cart"
124124
And the customLineItemId is "customLineItem-1"
125125
When i want to update a "Cart"
126-
Then the path should be "/carts/id"
126+
Then the path should be "carts/id"
127127
And the method should be "POST"
128128
And the request should be
129129
"""
@@ -142,7 +142,7 @@ Feature: I want to update a cart
142142
Given i want to "setCustomerEmail" of "cart"
143143
And set the email to "[email protected]"
144144
When i want to update a "Cart"
145-
Then the path should be "/carts/id"
145+
Then the path should be "carts/id"
146146
And the method should be "POST"
147147
And the request should be
148148
"""
@@ -161,7 +161,7 @@ Feature: I want to update a cart
161161
Given i want to "setShippingAddress" of "cart"
162162
And set the "default" object to "address"
163163
When i want to update a "Cart"
164-
Then the path should be "/carts/id"
164+
Then the path should be "carts/id"
165165
And the method should be "POST"
166166
And the request should be
167167
"""
@@ -184,7 +184,7 @@ Feature: I want to update a cart
184184
Given i want to "setBillingAddress" of "cart"
185185
And set the "default" object to "address"
186186
When i want to update a "Cart"
187-
Then the path should be "/carts/id"
187+
Then the path should be "carts/id"
188188
And the method should be "POST"
189189
And the request should be
190190
"""
@@ -207,7 +207,7 @@ Feature: I want to update a cart
207207
Given i want to "setCountry" of "cart"
208208
And set the country to "DE"
209209
When i want to update a "Cart"
210-
Then the path should be "/carts/id"
210+
Then the path should be "carts/id"
211211
And the method should be "POST"
212212
And the request should be
213213
"""
@@ -228,7 +228,7 @@ Feature: I want to update a cart
228228
Given i want to "setCustomerId" of "cart"
229229
And set the "customerId" to "customer-1"
230230
When i want to update a "Cart"
231-
Then the path should be "/carts/id"
231+
Then the path should be "carts/id"
232232
And the method should be "POST"
233233
And the request should be
234234
"""
@@ -247,7 +247,7 @@ Feature: I want to update a cart
247247
Given i want to "addDiscountCode" of "cart"
248248
And the "code" is "payless"
249249
When i want to update a "Cart"
250-
Then the path should be "/carts/id"
250+
Then the path should be "carts/id"
251251
And the method should be "POST"
252252
And the request should be
253253
"""
@@ -265,7 +265,7 @@ Feature: I want to update a cart
265265
Scenario: Recalculate cart
266266
Given i want to "recalculate" of "cart"
267267
When i want to update a "Cart"
268-
Then the path should be "/carts/id"
268+
Then the path should be "carts/id"
269269
And the method should be "POST"
270270
And the request should be
271271
"""
@@ -283,7 +283,7 @@ Feature: I want to update a cart
283283
Given i want to "setShippingMethod" of "cart"
284284
And set the "shippingMethod" reference "shippingMethod" to "myShippingMethod"
285285
When i want to update a "Cart"
286-
Then the path should be "/carts/id"
286+
Then the path should be "carts/id"
287287
And the method should be "POST"
288288
And the request should be
289289
"""
@@ -305,7 +305,7 @@ Feature: I want to update a cart
305305
Given i want to "removeDiscountCode" of "cart"
306306
And the "discountCode" reference "discountCode" is "payless"
307307
When i want to update a "Cart"
308-
Then the path should be "/carts/id"
308+
Then the path should be "carts/id"
309309
And the method should be "POST"
310310
And the request should be
311311
"""

features/request/CartDiscount/CartDiscountCreate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Feature: I want to create a new tax category
2323

2424
Scenario: create a category
2525
When i want to create a "cartDiscount"
26-
Then the path should be "/cart-discounts"
26+
Then the path should be "cart-discounts"
2727
And the method should be "POST"
2828
And the request should be
2929
"""

features/request/CartDiscount/CartDiscountDelete.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Feature: I want to delete a cart discount
22
Scenario: Delete cart discount
33
Given a "cartDiscount" is identified by "id" and "version"
44
And i want to delete a "CartDiscount"
5-
Then the path should be "/cart-discounts/id?version=version"
5+
Then the path should be "cart-discounts/id?version=version"
66
And the method should be "DELETE"

features/request/CartDiscount/CartDiscountQuery.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,42 @@ Feature: I want to query cartDiscounts
22
Scenario: Fetch a cartDiscount by id
33
Given a "cartDiscount" is identified by "id"
44
Given i want to fetch a "cartDiscount"
5-
Then the path should be "/cart-discounts/id"
5+
Then the path should be "cart-discounts/id"
66
And the method should be "GET"
77

88
Scenario: Query customers with filter applied
99
Given i want to query "cartDiscounts"
1010
And filter them with criteria 'name="Peter"'
11-
Then the path should be "/cart-discounts?where=name%3D%22Peter%22"
11+
Then the path should be "cart-discounts?where=name%3D%22Peter%22"
1212
And the method should be "GET"
1313

1414
Scenario: Query customers with filter applied
1515
Given i want to query "cartDiscounts"
1616
And filter them with criteria 'name="Peter"'
17-
Then the path should be "/cart-discounts?where=name%3D%22Peter%22"
17+
Then the path should be "cart-discounts?where=name%3D%22Peter%22"
1818
And the method should be "GET"
1919

2020
Scenario: Query customers with limit
2121
Given i want to query "cartDiscounts"
2222
And limit the result to "10"
23-
Then the path should be "/cart-discounts?limit=10"
23+
Then the path should be "cart-discounts?limit=10"
2424
And the method should be "GET"
2525

2626
Scenario: Query customers with offset
2727
Given i want to query "cartDiscounts"
2828
And offset the result with "10"
29-
Then the path should be "/cart-discounts?offset=10"
29+
Then the path should be "cart-discounts?offset=10"
3030
And the method should be "GET"
3131

3232
Scenario: Query customers sorted
3333
Given i want to query "cartDiscounts"
3434
And sort them by "name"
35-
Then the path should be "/cart-discounts?sort=name"
35+
Then the path should be "cart-discounts?sort=name"
3636
And the method should be "GET"
3737

3838
Scenario: Query parameters should be sorted
3939
Given i want to query "cartDiscounts"
4040
And sort them by "name"
4141
And offset the result with "10"
42-
Then the path should be "/cart-discounts?offset=10&sort=name"
42+
Then the path should be "cart-discounts?offset=10&sort=name"
4343
And the method should be "GET"

features/request/CartDiscount/CartDiscountUpdate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feature: I want to update a cart discount
33
Given a "cartDiscount" is identified by "id" and "version"
44
Scenario: Empty update
55
Given i want to update a "CartDiscount"
6-
Then the path should be "/cart-discounts/id"
6+
Then the path should be "cart-discounts/id"
77
And the method should be "POST"
88
And the request should be
99
"""

features/request/Category/CategoryCreate.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Feature: I want to create a new category
66

77
Scenario: create a category
88
When i want to create a "category"
9-
Then the path should be "/categories"
9+
Then the path should be "categories"
1010
And the method should be "POST"
1111
And the request should be
1212
"""

0 commit comments

Comments
 (0)