@@ -38,6 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param string $email |
41 | + * @return void |
|
41 | 42 | */ |
42 | 43 | public function setEmail($email); |
43 | 44 | |
@@ -50,6 +51,7 @@ discard block |
||
50 | 51 | |
51 | 52 | /** |
52 | 53 | * @param string $emailCanonical |
54 | + * @return void |
|
53 | 55 | */ |
54 | 56 | public function setEmailCanonical($emailCanonical); |
55 | 57 | |
@@ -67,6 +69,7 @@ discard block |
||
67 | 69 | |
68 | 70 | /** |
69 | 71 | * @param string $firstName |
72 | + * @return void |
|
70 | 73 | */ |
71 | 74 | public function setFirstName($firstName); |
72 | 75 | |
@@ -77,6 +80,7 @@ discard block |
||
77 | 80 | |
78 | 81 | /** |
79 | 82 | * @param string $lastName |
83 | + * @return void |
|
80 | 84 | */ |
81 | 85 | public function setLastName($lastName); |
82 | 86 | |
@@ -87,6 +91,7 @@ discard block |
||
87 | 91 | |
88 | 92 | /** |
89 | 93 | * @param \DateTime $birthday |
94 | + * @return void |
|
90 | 95 | */ |
91 | 96 | public function setBirthday(\DateTime $birthday = null); |
92 | 97 | |
@@ -99,6 +104,7 @@ discard block |
||
99 | 104 | * You should use interface constants for that. |
100 | 105 | * |
101 | 106 | * @param string $gender |
107 | + * @return void |
|
102 | 108 | */ |
103 | 109 | public function setGender($gender); |
104 | 110 | |
@@ -119,6 +125,7 @@ discard block |
||
119 | 125 | |
120 | 126 | /** |
121 | 127 | * @param string $phoneNumber |
128 | + * @return void |
|
122 | 129 | */ |
123 | 130 | public function setPhoneNumber($phoneNumber); |
124 | 131 | } |
@@ -15,6 +15,7 @@ discard block |
||
15 | 15 | use Behat\Gherkin\Node\TableNode; |
16 | 16 | use Behat\Mink\Element\NodeElement; |
17 | 17 | use Doctrine\Common\Persistence\ObjectManager; |
18 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
18 | 19 | use Sylius\Component\Attribute\Factory\AttributeFactoryInterface; |
19 | 20 | use Sylius\Component\Core\Formatter\StringInflector; |
20 | 21 | use Sylius\Component\Core\Model\ChannelInterface; |
@@ -23,9 +24,7 @@ discard block |
||
23 | 24 | use Sylius\Component\Core\Model\ProductInterface; |
24 | 25 | use Sylius\Component\Core\Model\ProductTranslationInterface; |
25 | 26 | use Sylius\Component\Core\Model\ProductVariantInterface; |
26 | -use Sylius\Component\Core\Pricing\Calculators; |
|
27 | 27 | use Sylius\Component\Core\Repository\ProductRepositoryInterface; |
28 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
29 | 28 | use Sylius\Component\Core\Uploader\ImageUploaderInterface; |
30 | 29 | use Sylius\Component\Product\Factory\ProductFactoryInterface; |
31 | 30 | use Sylius\Component\Product\Generator\SlugGeneratorInterface; |
@@ -34,11 +33,11 @@ discard block |
||
34 | 33 | use Sylius\Component\Product\Model\ProductOptionInterface; |
35 | 34 | use Sylius\Component\Product\Model\ProductOptionValueInterface; |
36 | 35 | use Sylius\Component\Product\Model\ProductVariantTranslationInterface; |
36 | +use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
37 | 37 | use Sylius\Component\Resource\Factory\FactoryInterface; |
38 | -use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
|
39 | 38 | use Sylius\Component\Resource\Model\TranslationInterface; |
39 | +use Sylius\Component\Shipping\Model\ShippingCategoryInterface; |
|
40 | 40 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
41 | -use Sylius\Component\Product\Resolver\ProductVariantResolverInterface; |
|
42 | 41 | use Symfony\Component\HttpFoundation\File\UploadedFile; |
43 | 42 | use Webmozart\Assert\Assert; |
44 | 43 |
@@ -16,9 +16,9 @@ |
||
16 | 16 | use Sylius\Behat\Service\SharedStorageInterface; |
17 | 17 | use Sylius\Bundle\CoreBundle\Fixture\Factory\ShippingMethodExampleFactory; |
18 | 18 | use Sylius\Component\Addressing\Model\Scope; |
19 | -use Sylius\Component\Core\Model\Scope as CoreScope; |
|
20 | 19 | use Sylius\Component\Addressing\Model\ZoneInterface; |
21 | 20 | use Sylius\Component\Core\Model\ChannelInterface; |
21 | +use Sylius\Component\Core\Model\Scope as CoreScope; |
|
22 | 22 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
23 | 23 | use Sylius\Component\Core\Repository\ShippingMethodRepositoryInterface; |
24 | 24 | use Sylius\Component\Resource\Factory\FactoryInterface; |
@@ -16,20 +16,18 @@ |
||
16 | 16 | use Sylius\Behat\NotificationType; |
17 | 17 | use Sylius\Behat\Page\Admin\Crud\CreatePageInterface; |
18 | 18 | use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
19 | +use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
19 | 20 | use Sylius\Behat\Page\Admin\Product\CreateConfigurableProductPageInterface; |
20 | 21 | use Sylius\Behat\Page\Admin\Product\CreateSimpleProductPageInterface; |
21 | 22 | use Sylius\Behat\Page\Admin\Product\IndexPageInterface; |
22 | 23 | use Sylius\Behat\Page\Admin\Product\IndexPerTaxonPageInterface; |
23 | 24 | use Sylius\Behat\Page\Admin\Product\UpdateConfigurableProductPageInterface; |
24 | 25 | use Sylius\Behat\Page\Admin\Product\UpdateSimpleProductPageInterface; |
25 | -use Sylius\Behat\Page\Admin\ProductReview\IndexPageInterface as ProductReviewIndexPageInterface; |
|
26 | 26 | use Sylius\Behat\Page\SymfonyPageInterface; |
27 | 27 | use Sylius\Behat\Service\NotificationCheckerInterface; |
28 | 28 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
29 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
30 | -use Sylius\Component\Core\Model\ProductInterface; |
|
31 | 29 | use Sylius\Behat\Service\SharedStorageInterface; |
32 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
30 | +use Sylius\Component\Core\Model\ProductInterface; |
|
33 | 31 | use Sylius\Component\Product\Model\ProductAssociationTypeInterface; |
34 | 32 | use Sylius\Component\Taxonomy\Model\TaxonInterface; |
35 | 33 | use Webmozart\Assert\Assert; |
@@ -19,11 +19,9 @@ |
||
19 | 19 | use Sylius\Behat\Page\Admin\ProductVariant\UpdatePageInterface; |
20 | 20 | use Sylius\Behat\Service\NotificationCheckerInterface; |
21 | 21 | use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface; |
22 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
22 | +use Sylius\Behat\Service\SharedStorageInterface; |
|
23 | 23 | use Sylius\Component\Core\Model\ProductInterface; |
24 | 24 | use Sylius\Component\Core\Model\ProductVariantInterface; |
25 | -use Sylius\Behat\Service\SharedStorageInterface; |
|
26 | -use Sylius\Component\Currency\Model\CurrencyInterface; |
|
27 | 25 | use Sylius\Component\Product\Resolver\DefaultProductVariantResolver; |
28 | 26 | use Webmozart\Assert\Assert; |
29 | 27 |
@@ -815,6 +815,8 @@ |
||
815 | 815 | /** |
816 | 816 | * @Given I have proceeded order with :shippingMethod shipping method and :paymentMethod payment |
817 | 817 | * @When I proceed with :shippingMethod shipping method and :paymentMethod payment |
818 | + * @param string $shippingMethod |
|
819 | + * @param string $paymentMethod |
|
818 | 820 | */ |
819 | 821 | public function iProceedOrderWithShippingMethodAndPayment($shippingMethod, $paymentMethod) |
820 | 822 | { |
@@ -18,67 +18,85 @@ |
||
18 | 18 | */ |
19 | 19 | interface CreatePageInterface extends BaseCreatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
22 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
23 | 29 | public function disable(); |
24 | 30 | |
25 | 31 | /** |
26 | 32 | * @param string $name |
33 | + * @return void |
|
27 | 34 | */ |
28 | 35 | public function nameIt($name); |
29 | 36 | |
30 | 37 | /** |
31 | 38 | * @param string $code |
39 | + * @return void |
|
32 | 40 | */ |
33 | 41 | public function specifyCode($code); |
34 | 42 | |
35 | 43 | /** |
36 | 44 | * @param string $description |
45 | + * @return void |
|
37 | 46 | */ |
38 | 47 | public function describeItAs($description); |
39 | 48 | |
40 | 49 | /** |
41 | 50 | * @param string $hostname |
51 | + * @return void |
|
42 | 52 | */ |
43 | 53 | public function setHostname($hostname); |
44 | 54 | |
45 | 55 | /** |
46 | 56 | * @param string $contactEmail |
57 | + * @return void |
|
47 | 58 | */ |
48 | 59 | public function setContactEmail($contactEmail); |
49 | 60 | |
50 | 61 | /** |
51 | 62 | * @param string $color |
63 | + * @return void |
|
52 | 64 | */ |
53 | 65 | public function defineColor($color); |
54 | 66 | |
55 | 67 | /** |
56 | 68 | * @param string $language |
69 | + * @return void |
|
57 | 70 | */ |
58 | 71 | public function chooseLocale($language); |
59 | 72 | |
60 | 73 | /** |
61 | 74 | * @param string $currencyCode |
75 | + * @return void |
|
62 | 76 | */ |
63 | 77 | public function chooseCurrency($currencyCode); |
64 | 78 | |
65 | 79 | /** |
66 | 80 | * @param string $taxZone |
81 | + * @return void |
|
67 | 82 | */ |
68 | 83 | public function chooseDefaultTaxZone($taxZone); |
69 | 84 | |
70 | 85 | /** |
71 | 86 | * @param string $locale |
87 | + * @return void |
|
72 | 88 | */ |
73 | 89 | public function chooseDefaultLocale($locale); |
74 | 90 | |
75 | 91 | /** |
76 | 92 | * @param string $currency |
93 | + * @return void |
|
77 | 94 | */ |
78 | 95 | public function chooseBaseCurrency($currency); |
79 | 96 | |
80 | 97 | /** |
81 | 98 | * @param string $taxCalculationStrategy |
99 | + * @return void |
|
82 | 100 | */ |
83 | 101 | public function chooseTaxCalculationStrategy($taxCalculationStrategy); |
84 | 102 | } |
@@ -63,12 +63,14 @@ discard block |
||
63 | 63 | |
64 | 64 | /** |
65 | 65 | * @param string $productName |
66 | + * @return void |
|
66 | 67 | */ |
67 | 68 | public function removeProduct($productName); |
68 | 69 | |
69 | 70 | /** |
70 | 71 | * @param string $productName |
71 | 72 | * @param int $quantity |
73 | + * @return void |
|
72 | 74 | */ |
73 | 75 | public function changeQuantity($productName, $quantity); |
74 | 76 | |
@@ -112,5 +114,8 @@ discard block |
||
112 | 114 | */ |
113 | 115 | public function getQuantity($productName); |
114 | 116 | |
117 | + /** |
|
118 | + * @return void |
|
119 | + */ |
|
115 | 120 | public function clearCart(); |
116 | 121 | } |
@@ -110,7 +110,7 @@ |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @return array |
|
113 | + * @return \Generator |
|
114 | 114 | */ |
115 | 115 | private function getLocales() |
116 | 116 | { |