@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | } |
146 | 146 | } |
147 | 147 | } |
148 | -EOT; |
|
148 | +eot; |
|
149 | 149 | |
150 | 150 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
151 | 151 | |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | } |
175 | 175 | } |
176 | 176 | } |
177 | -EOT; |
|
177 | +eot; |
|
178 | 178 | |
179 | 179 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
180 | 180 | |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | } |
216 | 216 | } |
217 | 217 | } |
218 | -EOT; |
|
218 | +eot; |
|
219 | 219 | $this->client->request('PUT', $this->getProductUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
220 | 220 | $response = $this->client->getResponse(); |
221 | 221 | |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | } |
242 | 242 | } |
243 | 243 | } |
244 | -EOT; |
|
244 | +eot; |
|
245 | 245 | $this->client->request('PATCH', $this->getProductUrl($product), [], [], static::$authorizedHeaderWithContentType, $data); |
246 | 246 | $response = $this->client->getResponse(); |
247 | 247 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | } |
301 | 301 | } |
302 | -EOT; |
|
302 | +eot; |
|
303 | 303 | |
304 | 304 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
305 | 305 | |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | } |
329 | 329 | } |
330 | 330 | } |
331 | -EOT; |
|
331 | +eot; |
|
332 | 332 | |
333 | 333 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
334 | 334 | |
@@ -357,7 +357,7 @@ discard block |
||
357 | 357 | }, |
358 | 358 | "productTaxons": "category,mugs" |
359 | 359 | } |
360 | -EOT; |
|
360 | +eot; |
|
361 | 361 | |
362 | 362 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
363 | 363 | |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | } |
386 | 386 | } |
387 | 387 | } |
388 | -EOT; |
|
388 | +eot; |
|
389 | 389 | |
390 | 390 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
391 | 391 | |
@@ -425,7 +425,7 @@ discard block |
||
425 | 425 | } |
426 | 426 | } |
427 | 427 | } |
428 | -EOT; |
|
428 | +eot; |
|
429 | 429 | |
430 | 430 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
431 | 431 | |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | } |
464 | 464 | } |
465 | 465 | } |
466 | -EOT; |
|
466 | +eot; |
|
467 | 467 | |
468 | 468 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
469 | 469 | |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | } |
499 | 499 | } |
500 | 500 | } |
501 | -EOT; |
|
501 | +eot; |
|
502 | 502 | |
503 | 503 | $this->client->request( |
504 | 504 | 'POST', |
@@ -541,7 +541,7 @@ discard block |
||
541 | 541 | } |
542 | 542 | } |
543 | 543 | } |
544 | -EOT; |
|
544 | +eot; |
|
545 | 545 | |
546 | 546 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
547 | 547 |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | "channel": "WEB", |
130 | 130 | "localeCode": "en_US" |
131 | 131 | } |
132 | -EOT; |
|
132 | +eot; |
|
133 | 133 | |
134 | 134 | $this->client->request('POST', $this->getCartApiUrl(), [], [], static::$authorizedHeaderWithContentType, $data); |
135 | 135 | |
@@ -290,7 +290,7 @@ discard block |
||
290 | 290 | "variant": "MUG_SW", |
291 | 291 | "quantity": 1 |
292 | 292 | } |
293 | -EOT; |
|
293 | +eot; |
|
294 | 294 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
295 | 295 | |
296 | 296 | $response = $this->client->getResponse(); |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | "variant": "MUG_SW", |
315 | 315 | "quantity": -1 |
316 | 316 | } |
317 | -EOT; |
|
317 | +eot; |
|
318 | 318 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
319 | 319 | |
320 | 320 | $response = $this->client->getResponse(); |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | "variant": "MUG_SW", |
339 | 339 | "quantity": 3 |
340 | 340 | } |
341 | -EOT; |
|
341 | +eot; |
|
342 | 342 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
343 | 343 | |
344 | 344 | $response = $this->client->getResponse(); |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | "variant": "HARD_AVAILABLE_MUG", |
363 | 363 | "quantity": 1 |
364 | 364 | } |
365 | -EOT; |
|
365 | +eot; |
|
366 | 366 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
367 | 367 | |
368 | 368 | $response = $this->client->getResponse(); |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | "variant": "HARD_AVAILABLE_MUG", |
387 | 387 | "quantity": 3 |
388 | 388 | } |
389 | -EOT; |
|
389 | +eot; |
|
390 | 390 | $this->client->request('POST', $this->getCartItemListUrl($cart), [], [], static::$authorizedHeaderWithContentType, $data); |
391 | 391 | |
392 | 392 | $response = $this->client->getResponse(); |
@@ -422,7 +422,7 @@ discard block |
||
422 | 422 | { |
423 | 423 | "variant": "MUG_SW" |
424 | 424 | } |
425 | -EOT; |
|
425 | +eot; |
|
426 | 426 | |
427 | 427 | $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data); |
428 | 428 | |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | { |
449 | 449 | "quantity": 3 |
450 | 450 | } |
451 | -EOT; |
|
451 | +eot; |
|
452 | 452 | $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data); |
453 | 453 | |
454 | 454 | $response = $this->client->getResponse(); |
@@ -478,7 +478,7 @@ discard block |
||
478 | 478 | { |
479 | 479 | "quantity": 3 |
480 | 480 | } |
481 | -EOT; |
|
481 | +eot; |
|
482 | 482 | $this->client->request('PUT', $this->getCartItemUrl($cart, $cartItem), [], [], static::$authorizedHeaderWithContentType, $data); |
483 | 483 | |
484 | 484 | $response = $this->client->getResponse(); |
@@ -22,18 +22,21 @@ |
||
22 | 22 | /** |
23 | 23 | * @throws UnsupportedDriverActionException |
24 | 24 | * @throws DriverException |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function authorize(); |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @throws UnsupportedDriverActionException |
30 | 31 | * @throws DriverException |
32 | + * @return void |
|
31 | 33 | */ |
32 | 34 | public function pay(); |
33 | 35 | |
34 | 36 | /** |
35 | 37 | * @throws UnsupportedDriverActionException |
36 | 38 | * @throws DriverException |
39 | + * @return void |
|
37 | 40 | */ |
38 | 41 | public function cancel(); |
39 | 42 | } |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ->setDescription('Install sample data into Sylius.') |
33 | 33 | ->setHelp(<<<EOT |
34 | 34 | The <info>%command.name%</info> command loads the sample data for Sylius. |
35 | -EOT |
|
35 | +eot |
|
36 | 36 | ) |
37 | 37 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
38 | 38 | ; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | ->setDescription('Installs Sylius in your preferred environment.') |
52 | 52 | ->setHelp(<<<EOT |
53 | 53 | The <info>%command.name%</info> command installs Sylius. |
54 | -EOT |
|
54 | +eot |
|
55 | 55 | ) |
56 | 56 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
57 | 57 | ; |
@@ -30,7 +30,7 @@ |
||
30 | 30 | ->setDescription('Install Sylius database.') |
31 | 31 | ->setHelp(<<<EOT |
32 | 32 | The <info>%command.name%</info> command creates Sylius database. |
33 | -EOT |
|
33 | +eot |
|
34 | 34 | ) |
35 | 35 | ->addOption('fixture-suite', 's', InputOption::VALUE_OPTIONAL, 'Load specified fixture suite during install', null) |
36 | 36 | ; |
@@ -947,6 +947,9 @@ |
||
947 | 947 | $this->objectManager->flush(); |
948 | 948 | } |
949 | 949 | |
950 | + /** |
|
951 | + * @param ProductVariantInterface $variant |
|
952 | + */ |
|
950 | 953 | private function createProductImage( |
951 | 954 | ProductInterface $product, |
952 | 955 | string $imagePath, |
@@ -18,15 +18,15 @@ |
||
18 | 18 | use Sylius\Behat\NotificationType; |
19 | 19 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
20 | 20 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
21 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
22 | +use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface; |
|
23 | +use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface; |
|
21 | 24 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
22 | 25 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
23 | 26 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
24 | 27 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
25 | 28 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
26 | 29 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
27 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
28 | -use Sylius\Behat\Page\Admin\ProductVariant\CreatePageInterface as VariantCreatePageInterface; |
|
29 | -use Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface; |
|
30 | 30 | use Sylius\Behat\Service\NotificationCheckerInterface; |
31 | 31 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
32 | 32 | use Sylius\Behat\Service\SharedStorageInterface; |
@@ -891,7 +891,7 @@ |
||
891 | 891 | */ |
892 | 892 | public function iRemoveItsPriceForChannel(string $channelName): void |
893 | 893 | { |
894 | - $this->iSetItsPriceTo('', $channelName); |
|
894 | + $this->iSetItsPriceTo('', $channelName); |
|
895 | 895 | } |
896 | 896 | |
897 | 897 | /** |
@@ -17,11 +17,22 @@ |
||
17 | 17 | |
18 | 18 | interface PromotionCouponInterface extends BasePromotionCouponInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return integer|null |
|
22 | + */ |
|
20 | 23 | public function getPerCustomerUsageLimit(): ?int; |
21 | 24 | |
25 | + /** |
|
26 | + * @param integer $perCustomerUsageLimit |
|
27 | + * |
|
28 | + * @return void |
|
29 | + */ |
|
22 | 30 | public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void; |
23 | 31 | |
24 | 32 | public function isReusableFromCancelledOrders(): bool; |
25 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
26 | 37 | public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void; |
27 | 38 | } |