@@ -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; |
@@ -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 | } |
@@ -37,6 +37,7 @@ |
||
37 | 37 | * @Transform /^taxon with "([^"]+)" name/ |
38 | 38 | * @Transform /^taxon "([^"]+)"$/ |
39 | 39 | * @Transform :taxon |
40 | + * @param string $name |
|
40 | 41 | */ |
41 | 42 | public function getTaxonByName($name) |
42 | 43 | { |
@@ -17,26 +17,50 @@ discard block |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function setPriority(?int $priority): void; |
21 | 24 | |
22 | 25 | public function getPriority(): int; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function nameIt(string $name): void; |
25 | 31 | |
26 | 32 | public function checkChannelsState(string $channelName): bool; |
27 | 33 | |
28 | 34 | public function isCodeDisabled(): bool; |
29 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
30 | 39 | public function fillUsageLimit(string $limit): void; |
31 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
32 | 44 | public function makeExclusive(): void; |
33 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
34 | 49 | public function checkCouponBased(): void; |
35 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
36 | 54 | public function checkChannel(string $name): void; |
37 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
38 | 59 | public function setStartsAt(\DateTimeInterface $dateTime): void; |
39 | 60 | |
61 | + /** |
|
62 | + * @return void |
|
63 | + */ |
|
40 | 64 | public function setEndsAt(\DateTimeInterface $dateTime): void; |
41 | 65 | |
42 | 66 | public function hasStartsAt(\DateTimeInterface $dateTime): bool; |
@@ -45,6 +69,9 @@ discard block |
||
45 | 69 | |
46 | 70 | public function isCouponManagementAvailable(): bool; |
47 | 71 | |
72 | + /** |
|
73 | + * @return void |
|
74 | + */ |
|
48 | 75 | public function manageCoupons(): void; |
49 | 76 | |
50 | 77 | public function hasAnyRule(): bool; |
@@ -17,9 +17,15 @@ |
||
17 | 17 | |
18 | 18 | interface IndexPageInterface extends CrudIndexPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function filterByTaxon(string $taxonName): void; |
21 | 24 | |
22 | 25 | public function hasProductAccessibleImage(string $productCode): bool; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function showProductPage(string $productName): void; |
25 | 31 | } |
@@ -20,6 +20,9 @@ discard block |
||
20 | 20 | { |
21 | 21 | public function isCodeDisabled(): bool; |
22 | 22 | |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function nameItIn(string $name, string $localeCode): void; |
24 | 27 | |
25 | 28 | public function isProductOptionChosen(string $option): bool; |
@@ -28,31 +31,59 @@ discard block |
||
28 | 31 | |
29 | 32 | public function isMainTaxonChosen(string $taxonName): bool; |
30 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
31 | 37 | public function selectMainTaxon(TaxonInterface $taxon): void; |
32 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
33 | 42 | public function checkChannel(string $channelName): void; |
34 | 43 | |
35 | 44 | public function isImageWithTypeDisplayed(string $type): bool; |
36 | 45 | |
37 | 46 | /** |
38 | 47 | * @param string $type |
48 | + * @return void |
|
39 | 49 | */ |
40 | 50 | public function attachImage(string $path, string $type = null): void; |
41 | 51 | |
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
42 | 55 | public function changeImageWithType(string $type, string $path): void; |
43 | 56 | |
57 | + /** |
|
58 | + * @return void |
|
59 | + */ |
|
44 | 60 | public function removeImageWithType(string $type): void; |
45 | 61 | |
62 | + /** |
|
63 | + * @return void |
|
64 | + */ |
|
46 | 65 | public function removeFirstImage(): void; |
47 | 66 | |
67 | + /** |
|
68 | + * @return void |
|
69 | + */ |
|
48 | 70 | public function modifyFirstImageType(string $type): void; |
49 | 71 | |
50 | 72 | public function countImages(): int; |
51 | 73 | |
74 | + /** |
|
75 | + * @return void |
|
76 | + */ |
|
52 | 77 | public function goToVariantsList(): void; |
53 | 78 | |
79 | + /** |
|
80 | + * @return void |
|
81 | + */ |
|
54 | 82 | public function goToVariantCreation(): void; |
55 | 83 | |
84 | + /** |
|
85 | + * @return void |
|
86 | + */ |
|
56 | 87 | public function goToVariantGeneration(): void; |
57 | 88 | |
58 | 89 | public function hasInventoryTab(): bool; |