@@ -85,11 +85,11 @@ |
||
85 | 85 | { |
86 | 86 | if ($configuration->isHeaderRedirection()) { |
87 | 87 | return new Response('', 200, [ |
88 | - 'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(), |
|
88 | + 'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(), |
|
89 | 89 | ]); |
90 | 90 | } |
91 | 91 | |
92 | - return new RedirectResponse($url.$configuration->getRedirectHash(), $status); |
|
92 | + return new RedirectResponse($url . $configuration->getRedirectHash(), $status); |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | /** |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | } |
148 | 148 | } |
149 | 149 | } |
150 | -EOT; |
|
150 | +eot; |
|
151 | 151 | |
152 | 152 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
153 | 153 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | } |
189 | 189 | } |
190 | -EOT; |
|
190 | +eot; |
|
191 | 191 | $this->client->request('PUT', '/api/v1/products/'. $products["product3"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
192 | 192 | $response = $this->client->getResponse(); |
193 | 193 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | } |
213 | 213 | } |
214 | -EOT; |
|
214 | +eot; |
|
215 | 215 | $this->client->request('PATCH', '/api/v1/products/'. $products["product1"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
216 | 216 | $response = $this->client->getResponse(); |
217 | 217 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | } |
270 | 270 | } |
271 | 271 | } |
272 | -EOT; |
|
272 | +eot; |
|
273 | 273 | |
274 | 274 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
275 | 275 | |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | } |
299 | 299 | } |
300 | 300 | } |
301 | -EOT; |
|
301 | +eot; |
|
302 | 302 | |
303 | 303 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
304 | 304 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | }, |
328 | 328 | "product_taxons": "category,mugs" |
329 | 329 | } |
330 | -EOT; |
|
330 | +eot; |
|
331 | 331 | |
332 | 332 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
333 | 333 | |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | } |
359 | 359 | } |
360 | 360 | } |
361 | -EOT; |
|
361 | +eot; |
|
362 | 362 | |
363 | 363 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
364 | 364 | |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | } |
399 | 399 | } |
400 | 400 | } |
401 | -EOT; |
|
401 | +eot; |
|
402 | 402 | |
403 | 403 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
404 | 404 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | } |
434 | 434 | } |
435 | 435 | } |
436 | -EOT; |
|
436 | +eot; |
|
437 | 437 | |
438 | 438 | $this->client->request( |
439 | 439 | 'POST', |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | } |
477 | 477 | } |
478 | 478 | } |
479 | -EOT; |
|
479 | +eot; |
|
480 | 480 | |
481 | 481 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
482 | 482 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
85 | 85 | $taxon = $taxons['women']; |
86 | 86 | |
87 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
87 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
88 | 88 | |
89 | 89 | $response = $this->client->getResponse(); |
90 | 90 | $this->assertResponse($response, 'taxon/show_response', Response::HTTP_OK); |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
100 | 100 | $taxon = $taxons['category']; |
101 | 101 | |
102 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
102 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
103 | 103 | |
104 | 104 | $response = $this->client->getResponse(); |
105 | 105 | $this->assertResponse($response, 'taxon/show_root_response', Response::HTTP_OK); |
@@ -127,12 +127,12 @@ discard block |
||
127 | 127 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
128 | 128 | $taxon = $taxons['men']; |
129 | 129 | |
130 | - $this->client->request('DELETE', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
130 | + $this->client->request('DELETE', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
131 | 131 | |
132 | 132 | $response = $this->client->getResponse(); |
133 | 133 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
134 | 134 | |
135 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
135 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
136 | 136 | |
137 | 137 | $response = $this->client->getResponse(); |
138 | 138 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -147,12 +147,12 @@ discard block |
||
147 | 147 | $taxons = $this->loadFixturesFromFile('resources/taxons.yml'); |
148 | 148 | $taxon = $taxons['category']; |
149 | 149 | |
150 | - $this->client->request('DELETE', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
150 | + $this->client->request('DELETE', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType); |
|
151 | 151 | |
152 | 152 | $response = $this->client->getResponse(); |
153 | 153 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
154 | 154 | |
155 | - $this->client->request('GET', '/api/v1/taxons/'.$taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
155 | + $this->client->request('GET', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
156 | 156 | |
157 | 157 | $response = $this->client->getResponse(); |
158 | 158 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | "parent": "books" |
334 | 334 | } |
335 | 335 | EOT; |
336 | - $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
336 | + $this->client->request('PUT', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
337 | 337 | $response = $this->client->getResponse(); |
338 | 338 | |
339 | 339 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | } |
361 | 361 | } |
362 | 362 | EOT; |
363 | - $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
363 | + $this->client->request('PUT', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
364 | 364 | $response = $this->client->getResponse(); |
365 | 365 | |
366 | 366 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | } |
388 | 388 | } |
389 | 389 | EOT; |
390 | - $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
390 | + $this->client->request('PATCH', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
391 | 391 | $response = $this->client->getResponse(); |
392 | 392 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
393 | 393 | } |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | } |
414 | 414 | } |
415 | 415 | EOT; |
416 | - $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
416 | + $this->client->request('PATCH', '/api/v1/taxons/' . $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
417 | 417 | $response = $this->client->getResponse(); |
418 | 418 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
419 | 419 | } |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | } |
182 | 182 | } |
183 | 183 | } |
184 | -EOT; |
|
184 | +eot; |
|
185 | 185 | |
186 | 186 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
187 | 187 | |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | { |
202 | 202 | "code": "fluffy_pets" |
203 | 203 | } |
204 | -EOT; |
|
204 | +eot; |
|
205 | 205 | |
206 | 206 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
207 | 207 | |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | } |
235 | 235 | } |
236 | 236 | } |
237 | -EOT; |
|
237 | +eot; |
|
238 | 238 | |
239 | 239 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
240 | 240 | |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | "code": "horror", |
258 | 258 | "parent": "books" |
259 | 259 | } |
260 | -EOT; |
|
260 | +eot; |
|
261 | 261 | |
262 | 262 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
263 | 263 | |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | } |
299 | 299 | ] |
300 | 300 | } |
301 | -EOT; |
|
301 | +eot; |
|
302 | 302 | |
303 | 303 | $this->client->request('POST', '/api/v1/taxons/', [], [ |
304 | 304 | 'images' => [ |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | }, |
333 | 333 | "parent": "books" |
334 | 334 | } |
335 | -EOT; |
|
335 | +eot; |
|
336 | 336 | $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
337 | 337 | $response = $this->client->getResponse(); |
338 | 338 | |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | } |
360 | 360 | } |
361 | 361 | } |
362 | -EOT; |
|
362 | +eot; |
|
363 | 363 | $this->client->request('PUT', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
364 | 364 | $response = $this->client->getResponse(); |
365 | 365 | |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | } |
387 | 387 | } |
388 | 388 | } |
389 | -EOT; |
|
389 | +eot; |
|
390 | 390 | $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
391 | 391 | $response = $this->client->getResponse(); |
392 | 392 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | } |
413 | 413 | } |
414 | 414 | } |
415 | -EOT; |
|
415 | +eot; |
|
416 | 416 | $this->client->request('PATCH', '/api/v1/taxons/'. $taxon->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
417 | 417 | $response = $this->client->getResponse(); |
418 | 418 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | "channel": "CHANNEL", |
50 | 50 | "locale_code": "en_US" |
51 | 51 | } |
52 | -EOT; |
|
52 | +eot; |
|
53 | 53 | |
54 | 54 | $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data); |
55 | 55 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | "variant": "MUG_SW", |
73 | 73 | "quantity": 1 |
74 | 74 | } |
75 | -EOT; |
|
75 | +eot; |
|
76 | 76 | |
77 | 77 | $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
78 | 78 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | }, |
106 | 106 | "different_billing_address": true |
107 | 107 | } |
108 | -EOT; |
|
108 | +eot; |
|
109 | 109 | |
110 | 110 | $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId); |
111 | 111 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | } |
133 | 133 | ] |
134 | 134 | } |
135 | -EOT; |
|
135 | +eot; |
|
136 | 136 | |
137 | 137 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
138 | 138 | } |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | } |
159 | 159 | ] |
160 | 160 | } |
161 | -EOT; |
|
161 | +eot; |
|
162 | 162 | |
163 | 163 | $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data); |
164 | 164 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | { |
62 | 62 | "different_billing_address": false |
63 | 63 | } |
64 | -EOT; |
|
64 | +eot; |
|
65 | 65 | |
66 | 66 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
67 | 67 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | }, |
95 | 95 | "different_billing_address": false |
96 | 96 | } |
97 | -EOT; |
|
97 | +eot; |
|
98 | 98 | |
99 | 99 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
100 | 100 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | }, |
129 | 129 | "different_billing_address": true |
130 | 130 | } |
131 | -EOT; |
|
131 | +eot; |
|
132 | 132 | |
133 | 133 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
134 | 134 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | }, |
170 | 170 | "different_billing_address": true |
171 | 171 | } |
172 | -EOT; |
|
172 | +eot; |
|
173 | 173 | |
174 | 174 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
175 | 175 | |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | }, |
208 | 208 | "different_billing_address": false |
209 | 209 | } |
210 | -EOT; |
|
210 | +eot; |
|
211 | 211 | |
212 | 212 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
213 | 213 | |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | }, |
225 | 225 | "different_billing_address": false |
226 | 226 | } |
227 | -EOT; |
|
227 | +eot; |
|
228 | 228 | |
229 | 229 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newData); |
230 | 230 | |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | }, |
258 | 258 | "different_billing_address": false |
259 | 259 | } |
260 | -EOT; |
|
260 | +eot; |
|
261 | 261 | |
262 | 262 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $addressData); |
263 | 263 | |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | }, |
277 | 277 | "different_billing_address": false |
278 | 278 | } |
279 | -EOT; |
|
279 | +eot; |
|
280 | 280 | |
281 | 281 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newAddressData); |
282 | 282 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | }, |
310 | 310 | "different_billing_address": false |
311 | 311 | } |
312 | -EOT; |
|
312 | +eot; |
|
313 | 313 | |
314 | 314 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $addressData); |
315 | 315 | |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | }, |
330 | 330 | "different_billing_address": false |
331 | 331 | } |
332 | -EOT; |
|
332 | +eot; |
|
333 | 333 | |
334 | 334 | $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newAddressData); |
335 | 335 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $this->addItemToCart($cartId); |
58 | 58 | $this->addressOrder($cartId); |
59 | 59 | |
60 | - $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
60 | + $this->client->request('PATCH', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType); |
|
61 | 61 | |
62 | 62 | $response = $this->client->getResponse(); |
63 | 63 | $this->assertResponse($response, 'checkout/payment_invalid_order_state', Response::HTTP_INTERNAL_SERVER_ERROR); |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | EOT; |
89 | 89 | |
90 | - $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
90 | + $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
|
91 | 91 | |
92 | 92 | $response = $this->client->getResponse(); |
93 | 93 |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | } |
86 | 86 | ] |
87 | 87 | } |
88 | -EOT; |
|
88 | +eot; |
|
89 | 89 | |
90 | 90 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
91 | 91 | |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | } |
176 | 176 | ] |
177 | 177 | } |
178 | -EOT; |
|
178 | +eot; |
|
179 | 179 | |
180 | 180 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
181 | 181 | |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | } |
217 | 217 | ] |
218 | 218 | } |
219 | -EOT; |
|
219 | +eot; |
|
220 | 220 | |
221 | 221 | $this->client->request('PUT', $this->getSelectPaymentUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
222 | 222 |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | } |
150 | 150 | ] |
151 | 151 | } |
152 | -EOT; |
|
152 | +eot; |
|
153 | 153 | |
154 | 154 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
155 | 155 | |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | } |
184 | 184 | ] |
185 | 185 | } |
186 | -EOT; |
|
186 | +eot; |
|
187 | 187 | |
188 | 188 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
189 | 189 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | } |
224 | 224 | ] |
225 | 225 | } |
226 | -EOT; |
|
226 | +eot; |
|
227 | 227 | |
228 | 228 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
229 | 229 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | } |
260 | 260 | ] |
261 | 261 | } |
262 | -EOT; |
|
262 | +eot; |
|
263 | 263 | |
264 | 264 | $this->client->request('PUT', $this->getSelectShippingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data); |
265 | 265 |