@@ -41,21 +41,42 @@ |
||
41 | 41 | |
42 | 42 | public function content(): string; |
43 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
44 | 47 | public function setContent(array $content): void; |
45 | 48 | |
49 | + /** |
|
50 | + * @return void |
|
51 | + */ |
|
46 | 52 | public function updateContent(array $newValues): void; |
47 | 53 | |
48 | 54 | public function parameters(): array; |
49 | 55 | |
56 | + /** |
|
57 | + * @return void |
|
58 | + */ |
|
50 | 59 | public function updateParameters(array $newParameters): void; |
51 | 60 | |
52 | 61 | public function files(): array; |
53 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
54 | 66 | public function updateFiles(array $newFiles): void; |
55 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
56 | 71 | public function addSubResource(string $key, array $subResource): void; |
57 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
58 | 76 | public function removeSubResource(string $subResource, string $id): void; |
59 | 77 | |
78 | + /** |
|
79 | + * @return void |
|
80 | + */ |
|
60 | 81 | public function authorize(?string $token): void; |
61 | 82 | } |
@@ -61,6 +61,9 @@ |
||
61 | 61 | Assert::notNull($this->responseChecker->getError($response)); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @return string |
|
66 | + */ |
|
64 | 67 | private function getCartTokenValue(): ?string |
65 | 68 | { |
66 | 69 | if ($this->sharedStorage->has('cart_token')) { |
@@ -15,9 +15,6 @@ |
||
15 | 15 | |
16 | 16 | use Behat\Behat\Context\Context; |
17 | 17 | use Sylius\Behat\Service\SharedStorageInterface; |
18 | -use Sylius\Bundle\ApiBundle\Command\Cart\PickupCart; |
|
19 | -use Sylius\Component\Resource\Generator\RandomnessGeneratorInterface; |
|
20 | -use Symfony\Component\Messenger\MessageBusInterface; |
|
21 | 18 | |
22 | 19 | final class CartTokenContext implements Context |
23 | 20 | { |
@@ -129,6 +129,8 @@ |
||
129 | 129 | /** |
130 | 130 | * @When /^I set its(?:| default) price to "(?:€|£|\$)([^"]+)" for ("([^"]+)" channel)$/ |
131 | 131 | * @When I do not set its price |
132 | + * @param string $price |
|
133 | + * @param ChannelInterface $channel |
|
132 | 134 | */ |
133 | 135 | public function iSetItsPriceTo(?string $price = null, ?ChannelInterface $channel = null) |
134 | 136 | { |
@@ -139,6 +139,7 @@ |
||
139 | 139 | |
140 | 140 | /** |
141 | 141 | * @When /^I proceed selecting ("[^"]+" as billing country) with "([^"]+)" method$/ |
142 | + * @param string $shippingMethodName |
|
142 | 143 | */ |
143 | 144 | public function iProceedSelectingBillingCountryAndShippingMethod( |
144 | 145 | CountryInterface $shippingCountry = null, |
@@ -17,42 +17,98 @@ |
||
17 | 17 | |
18 | 18 | interface CreatePageInterface extends BaseCreatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function enable(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function disable(): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function nameIt(string $name): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function specifyCode(string $code): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function describeItAs(string $description): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function setHostname(string $hostname): void; |
31 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
32 | 53 | public function setContactEmail(string $contactEmail): void; |
33 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
34 | 58 | public function setContactPhoneNumber(string $contactPhoneNumber): void; |
35 | 59 | |
60 | + /** |
|
61 | + * @return void |
|
62 | + */ |
|
36 | 63 | public function defineColor(string $color): void; |
37 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
38 | 68 | public function chooseLocale(string $language): void; |
39 | 69 | |
70 | + /** |
|
71 | + * @return void |
|
72 | + */ |
|
40 | 73 | public function chooseCurrency(string $currencyCode): void; |
41 | 74 | |
75 | + /** |
|
76 | + * @return void |
|
77 | + */ |
|
42 | 78 | public function chooseDefaultTaxZone(string $taxZone): void; |
43 | 79 | |
80 | + /** |
|
81 | + * @param null|string $locale |
|
82 | + * |
|
83 | + * @return void |
|
84 | + */ |
|
44 | 85 | public function chooseDefaultLocale(?string $locale): void; |
45 | 86 | |
46 | 87 | /** @param string[] $countries */ |
47 | 88 | public function chooseOperatingCountries(array $countries): void; |
48 | 89 | |
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
49 | 93 | public function chooseBaseCurrency(?string $currency): void; |
50 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
51 | 98 | public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void; |
52 | 99 | |
100 | + /** |
|
101 | + * @return void |
|
102 | + */ |
|
53 | 103 | public function allowToSkipShippingStep(): void; |
54 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
55 | 108 | public function allowToSkipPaymentStep(): void; |
56 | 109 | |
110 | + /** |
|
111 | + * @return void |
|
112 | + */ |
|
57 | 113 | public function specifyMenuTaxon(string $menuTaxon): void; |
58 | 114 | } |
@@ -17,31 +17,55 @@ |
||
17 | 17 | |
18 | 18 | interface UpdatePageInterface extends BaseUpdatePageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function enable(): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function disable(): void; |
23 | 29 | |
24 | 30 | public function getFullName(): string; |
25 | 31 | |
32 | + /** |
|
33 | + * @return void |
|
34 | + */ |
|
26 | 35 | public function changeFirstName(string $firstName): void; |
27 | 36 | |
28 | 37 | public function getFirstName(): string; |
29 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
30 | 42 | public function changeLastName(string $lastName): void; |
31 | 43 | |
32 | 44 | public function getLastName(): string; |
33 | 45 | |
46 | + /** |
|
47 | + * @return void |
|
48 | + */ |
|
34 | 49 | public function changeEmail(string $email): void; |
35 | 50 | |
51 | + /** |
|
52 | + * @return void |
|
53 | + */ |
|
36 | 54 | public function changePassword(string $password): void; |
37 | 55 | |
38 | 56 | public function getPassword(): string; |
39 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
40 | 61 | public function subscribeToTheNewsletter(): void; |
41 | 62 | |
42 | 63 | public function isSubscribedToTheNewsletter(): bool; |
43 | 64 | |
44 | 65 | public function getGroupName(): string; |
45 | 66 | |
67 | + /** |
|
68 | + * @return void |
|
69 | + */ |
|
46 | 70 | public function verifyUser(): void; |
47 | 71 | } |
@@ -17,17 +17,38 @@ |
||
17 | 17 | |
18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function specifyFilterDateFrom(string $dateTime): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function specifyFilterDateTo(string $dateTime): void; |
23 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
24 | 33 | public function chooseChannelFilter(string $channelName): void; |
25 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
26 | 38 | public function chooseShippingMethodFilter(string $methodName): void; |
27 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
28 | 43 | public function chooseCurrencyFilter(string $currencyName): void; |
29 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
30 | 48 | public function specifyFilterTotalGreaterThan(string $total): void; |
31 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
32 | 53 | public function specifyFilterTotalLessThan(string $total): void; |
33 | 54 | } |
@@ -20,43 +20,91 @@ |
||
20 | 20 | |
21 | 21 | interface CreateSimpleProductPageInterface extends BaseCreatePageInterface |
22 | 22 | { |
23 | + /** |
|
24 | + * @return void |
|
25 | + */ |
|
23 | 26 | public function specifyPrice(ChannelInterface $channel, string $price): void; |
24 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
25 | 31 | public function specifyOriginalPrice(ChannelInterface $channel, int $originalPrice): void; |
26 | 32 | |
33 | + /** |
|
34 | + * @return void |
|
35 | + */ |
|
27 | 36 | public function choosePricingCalculator(string $name): void; |
28 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
29 | 41 | public function checkChannel(string $channelName): void; |
30 | 42 | |
43 | + /** |
|
44 | + * @return void |
|
45 | + */ |
|
31 | 46 | public function specifyCode(string $code): void; |
32 | 47 | |
48 | + /** |
|
49 | + * @return void |
|
50 | + */ |
|
33 | 51 | public function nameItIn(string $name, string $localeCode): void; |
34 | 52 | |
53 | + /** |
|
54 | + * @return void |
|
55 | + */ |
|
35 | 56 | public function specifySlugIn(?string $slug, string $locale): void; |
36 | 57 | |
58 | + /** |
|
59 | + * @return void |
|
60 | + */ |
|
37 | 61 | public function addAttribute(string $attributeName, string $value, string $localeCode): void; |
38 | 62 | |
39 | 63 | public function getAttributeValidationErrors(string $attributeName, string $localeCode): string; |
40 | 64 | |
65 | + /** |
|
66 | + * @return void |
|
67 | + */ |
|
41 | 68 | public function removeAttribute(string $attributeName, string $localeCode): void; |
42 | 69 | |
43 | 70 | public function isMainTaxonChosen(string $taxonName): bool; |
44 | 71 | |
72 | + /** |
|
73 | + * @return void |
|
74 | + */ |
|
45 | 75 | public function selectMainTaxon(TaxonInterface $taxon): void; |
46 | 76 | |
77 | + /** |
|
78 | + * @param string $type |
|
79 | + * |
|
80 | + * @return void |
|
81 | + */ |
|
47 | 82 | public function attachImage(string $path, ?string $type = null): void; |
48 | 83 | |
49 | 84 | /** |
50 | 85 | * @param string[] $productsNames |
86 | + * @return void |
|
51 | 87 | */ |
52 | 88 | public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames): void; |
53 | 89 | |
90 | + /** |
|
91 | + * @return void |
|
92 | + */ |
|
54 | 93 | public function removeAssociatedProduct(string $productName, ProductAssociationTypeInterface $productAssociationType): void; |
55 | 94 | |
95 | + /** |
|
96 | + * @return void |
|
97 | + */ |
|
56 | 98 | public function activateLanguageTab(string $locale): void; |
57 | 99 | |
100 | + /** |
|
101 | + * @return void |
|
102 | + */ |
|
58 | 103 | public function selectShippingCategory(string $shippingCategoryName): void; |
59 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
60 | 108 | public function setShippingRequired(bool $isShippingRequired): void; |
61 | 109 | |
62 | 110 | public function getChannelPricingValidationMessage(): string; |