@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function it_returns_tax_scopes_when_zone_scope_set_to_tax() |
109 | 109 | { |
110 | - $this->zoneRepository->findBy([ 'scope' => ['tax', AddressingScope::ALL]])->willReturn([ |
|
110 | + $this->zoneRepository->findBy(['scope' => ['tax', AddressingScope::ALL]])->willReturn([ |
|
111 | 111 | $this->zoneAllScopes->reveal(), |
112 | 112 | $this->zoneTaxScope->reveal(), |
113 | 113 | ]); |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function it_returns_shipping_scopes_when_zone_scope_set_to_shipping() |
122 | 122 | { |
123 | - $this->zoneRepository->findBy([ 'scope' => ['shipping', AddressingScope::ALL]])->willReturn([ |
|
123 | + $this->zoneRepository->findBy(['scope' => ['shipping', AddressingScope::ALL]])->willReturn([ |
|
124 | 124 | $this->zoneAllScopes->reveal(), |
125 | 125 | $this->zoneShippingScope->reveal(), |
126 | 126 | ]); |
@@ -28,18 +28,30 @@ discard block |
||
28 | 28 | |
29 | 29 | public function hasShipment(string $shippingMethodName): bool; |
30 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
31 | 34 | public function specifyTrackingCode(string $code): void; |
32 | 35 | |
33 | 36 | public function canShipOrder(OrderInterface $order): bool; |
34 | 37 | |
38 | + /** |
|
39 | + * @return void |
|
40 | + */ |
|
35 | 41 | public function shipOrder(OrderInterface $order): void; |
36 | 42 | |
37 | 43 | public function hasPayment(string $paymentMethodName): bool; |
38 | 44 | |
39 | 45 | public function canCompleteOrderLastPayment(OrderInterface $order): bool; |
40 | 46 | |
47 | + /** |
|
48 | + * @return void |
|
49 | + */ |
|
41 | 50 | public function completeOrderLastPayment(OrderInterface $order): void; |
42 | 51 | |
52 | + /** |
|
53 | + * @return void |
|
54 | + */ |
|
43 | 55 | public function refundOrderLastPayment(OrderInterface $order): void; |
44 | 56 | |
45 | 57 | public function countItems(): int; |
@@ -94,8 +106,14 @@ discard block |
||
94 | 106 | |
95 | 107 | public function getShippingState(): string; |
96 | 108 | |
109 | + /** |
|
110 | + * @return void |
|
111 | + */ |
|
97 | 112 | public function cancelOrder(): void; |
98 | 113 | |
114 | + /** |
|
115 | + * @return void |
|
116 | + */ |
|
99 | 117 | public function deleteOrder(): void; |
100 | 118 | |
101 | 119 | public function hasNote(string $note): bool; |
@@ -116,7 +134,13 @@ discard block |
||
116 | 134 | |
117 | 135 | public function hasInformationAboutNoPayment(): bool; |
118 | 136 | |
137 | + /** |
|
138 | + * @return void |
|
139 | + */ |
|
119 | 140 | public function resendOrderConfirmationEmail(): void; |
120 | 141 | |
142 | + /** |
|
143 | + * @return void |
|
144 | + */ |
|
121 | 145 | public function resendShipmentConfirmationEmail(): void; |
122 | 146 | } |
@@ -18,48 +18,93 @@ |
||
18 | 18 | |
19 | 19 | interface AddressPageInterface extends SymfonyPageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function chooseDifferentBillingAddress(): void; |
22 | 25 | |
23 | 26 | public function checkInvalidCredentialsValidation(): bool; |
24 | 27 | |
25 | 28 | public function checkValidationMessageFor(string $element, string $message): bool; |
26 | 29 | |
30 | + /** |
|
31 | + * @return void |
|
32 | + */ |
|
27 | 33 | public function specifyShippingAddress(AddressInterface $shippingAddress): void; |
28 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
29 | 38 | public function selectShippingAddressProvince(string $province): void; |
30 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
31 | 43 | public function specifyBillingAddress(AddressInterface $billingAddress): void; |
32 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
33 | 48 | public function selectBillingAddressProvince(string $province): void; |
34 | 49 | |
50 | + /** |
|
51 | + * @return void |
|
52 | + */ |
|
35 | 53 | public function specifyEmail(string $email): void; |
36 | 54 | |
55 | + /** |
|
56 | + * @return void |
|
57 | + */ |
|
37 | 58 | public function specifyShippingAddressFullName(string $fullName): void; |
38 | 59 | |
39 | 60 | public function canSignIn(): bool; |
40 | 61 | |
62 | + /** |
|
63 | + * @return void |
|
64 | + */ |
|
41 | 65 | public function signIn(): void; |
42 | 66 | |
67 | + /** |
|
68 | + * @return void |
|
69 | + */ |
|
43 | 70 | public function specifyPassword(string $password): void; |
44 | 71 | |
45 | 72 | public function getItemSubtotal(string $itemName):string ; |
46 | 73 | |
47 | 74 | public function getShippingAddressCountry(): string ; |
48 | 75 | |
76 | + /** |
|
77 | + * @return void |
|
78 | + */ |
|
49 | 79 | public function nextStep(): void; |
50 | 80 | |
81 | + /** |
|
82 | + * @return void |
|
83 | + */ |
|
51 | 84 | public function backToStore(): void; |
52 | 85 | |
86 | + /** |
|
87 | + * @return void |
|
88 | + */ |
|
53 | 89 | public function specifyBillingAddressProvince(string $provinceName):void; |
54 | 90 | |
91 | + /** |
|
92 | + * @return void |
|
93 | + */ |
|
55 | 94 | public function specifyShippingAddressProvince(string $provinceName): void; |
56 | 95 | |
57 | 96 | public function hasShippingAddressInput(): bool; |
58 | 97 | |
59 | 98 | public function hasBillingAddressInput(): bool; |
60 | 99 | |
100 | + /** |
|
101 | + * @return void |
|
102 | + */ |
|
61 | 103 | public function selectShippingAddressFromAddressBook(AddressInterface $address): void; |
62 | 104 | |
105 | + /** |
|
106 | + * @return void |
|
107 | + */ |
|
63 | 108 | public function selectBillingAddressFromAddressBook(AddressInterface $address): void; |
64 | 109 | |
65 | 110 | public function getPreFilledShippingAddress(): AddressInterface; |
@@ -42,9 +42,9 @@ |
||
42 | 42 | |
43 | 43 | public function specifyPassword(string $password): void; |
44 | 44 | |
45 | - public function getItemSubtotal(string $itemName):string ; |
|
45 | + public function getItemSubtotal(string $itemName):string; |
|
46 | 46 | |
47 | - public function getShippingAddressCountry(): string ; |
|
47 | + public function getShippingAddressCountry(): string; |
|
48 | 48 | |
49 | 49 | public function nextStep(): void; |
50 | 50 |
@@ -38,6 +38,9 @@ discard block |
||
38 | 38 | |
39 | 39 | public function hasShippingMethod(ShippingMethodInterface $shippingMethod): bool; |
40 | 40 | |
41 | + /** |
|
42 | + * @return void |
|
43 | + */ |
|
41 | 44 | public function addNotes(string $notes): void; |
42 | 45 | |
43 | 46 | public function hasPromotionTotal(string $promotionTotal): bool; |
@@ -62,12 +65,24 @@ discard block |
||
62 | 65 | |
63 | 66 | public function hasCurrency(string $currencyCode): bool; |
64 | 67 | |
68 | + /** |
|
69 | + * @return void |
|
70 | + */ |
|
65 | 71 | public function confirmOrder(): void; |
66 | 72 | |
73 | + /** |
|
74 | + * @return void |
|
75 | + */ |
|
67 | 76 | public function changeAddress(): void; |
68 | 77 | |
78 | + /** |
|
79 | + * @return void |
|
80 | + */ |
|
69 | 81 | public function changeShippingMethod(): void; |
70 | 82 | |
83 | + /** |
|
84 | + * @return void |
|
85 | + */ |
|
71 | 86 | public function changePaymentMethod(): void; |
72 | 87 | |
73 | 88 | public function hasShippingProvinceName(string $provinceName):bool; |
@@ -17,18 +17,33 @@ |
||
17 | 17 | |
18 | 18 | interface SelectPaymentPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function selectPaymentMethod(string $paymentMethod): void; |
21 | 24 | |
22 | 25 | public function hasPaymentMethod(string $paymentMethodName): bool; |
23 | 26 | |
24 | 27 | public function getItemSubtotal(string $itemName):string; |
25 | 28 | |
29 | + /** |
|
30 | + * @return void |
|
31 | + */ |
|
26 | 32 | public function nextStep(): void; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function changeShippingMethod(): void; |
29 | 38 | |
39 | + /** |
|
40 | + * @return void |
|
41 | + */ |
|
30 | 42 | public function changeShippingMethodByStepLabel(): void; |
31 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
32 | 47 | public function changeAddressByStepLabel(): void; |
33 | 48 | |
34 | 49 | public function hasNoAvailablePaymentMethodsWarning(): bool; |
@@ -17,6 +17,9 @@ discard block |
||
17 | 17 | |
18 | 18 | interface SelectShippingPageInterface extends SymfonyPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function selectShippingMethod(string $shippingMethod): void; |
21 | 24 | |
22 | 25 | public function getShippingMethods(): array; |
@@ -29,10 +32,19 @@ discard block |
||
29 | 32 | |
30 | 33 | public function getItemSubtotal(string $itemName): string; |
31 | 34 | |
35 | + /** |
|
36 | + * @return void |
|
37 | + */ |
|
32 | 38 | public function nextStep(): void; |
33 | 39 | |
40 | + /** |
|
41 | + * @return void |
|
42 | + */ |
|
34 | 43 | public function changeAddress(): void; |
35 | 44 | |
45 | + /** |
|
46 | + * @return void |
|
47 | + */ |
|
36 | 48 | public function changeAddressByStepLabel():void; |
37 | 49 | |
38 | 50 | public function getPurchaserEmail(): string; |
@@ -23,10 +23,19 @@ |
||
23 | 23 | |
24 | 24 | public function getLastProductNameFromList(): string; |
25 | 25 | |
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
26 | 29 | public function search(string $name): void; |
27 | 30 | |
31 | + /** |
|
32 | + * @return void |
|
33 | + */ |
|
28 | 34 | public function sort(string $orderNumber): void; |
29 | 35 | |
36 | + /** |
|
37 | + * @return void |
|
38 | + */ |
|
30 | 39 | public function clearFilter(): void; |
31 | 40 | |
32 | 41 | public function isProductOnList(string $productName): bool; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | public function isEmpty(): bool; |
35 | 35 | |
36 | - public function getProductPrice(string $productName): string ; |
|
36 | + public function getProductPrice(string $productName): string; |
|
37 | 37 | |
38 | 38 | public function isProductOnPageWithName(string $name): bool; |
39 | 39 |
@@ -22,11 +22,13 @@ discard block |
||
22 | 22 | { |
23 | 23 | /** |
24 | 24 | * @throws ElementNotFoundException |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | public function addToCart(): void; |
27 | 28 | |
28 | 29 | /** |
29 | 30 | * @throws ElementNotFoundException |
31 | + * @return void |
|
30 | 32 | */ |
31 | 33 | public function addToCartWithQuantity(string $quantity): void; |
32 | 34 | |
@@ -34,14 +36,19 @@ discard block |
||
34 | 36 | * @param string $variant |
35 | 37 | * |
36 | 38 | * @throws ElementNotFoundException |
39 | + * @return void |
|
37 | 40 | */ |
38 | 41 | public function addToCartWithVariant(string $variant): void; |
39 | 42 | |
40 | 43 | /** |
41 | 44 | * @throws ElementNotFoundException |
45 | + * @return void |
|
42 | 46 | */ |
43 | 47 | public function addToCartWithOption(ProductOptionInterface $option, string $optionValue): void; |
44 | 48 | |
49 | + /** |
|
50 | + * @return null|string |
|
51 | + */ |
|
45 | 52 | public function getAttributeByName(string $name): ?string; |
46 | 53 | |
47 | 54 | public function getAttributes(): array; |
@@ -74,9 +81,18 @@ discard block |
||
74 | 81 | |
75 | 82 | public function countReviews(): int; |
76 | 83 | |
84 | + /** |
|
85 | + * @return void |
|
86 | + */ |
|
77 | 87 | public function selectOption(string $optionName, string $optionValue): void; |
78 | 88 | |
89 | + /** |
|
90 | + * @return void |
|
91 | + */ |
|
79 | 92 | public function selectVariant(string $variantName): void; |
80 | 93 | |
94 | + /** |
|
95 | + * @return void |
|
96 | + */ |
|
81 | 97 | public function visit(string $url): void; |
82 | 98 | } |
@@ -17,5 +17,8 @@ |
||
17 | 17 | |
18 | 18 | interface OrderEmailManagerInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function sendConfirmationEmail(OrderInterface $order): void; |
21 | 24 | } |