Completed
Push — move-guzzle ( fd46e9 )
by Kamil
21:01
created
src/Sylius/Behat/Page/Shop/Checkout/AddressPageInterface.php 1 patch
Doc Comments   +45 added lines patch added patch discarded remove patch
@@ -18,48 +18,93 @@
 block discarded – undo
18 18
 
19 19
 interface AddressPageInterface extends SymfonyPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function chooseDifferentShippingAddress(): 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 specifyBillingAddressFullName(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;
Please login to merge, or discard this patch.
tests/Controller/CheckoutApiTestCase.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             "channel": "CHANNEL",
40 40
             "localeCode": "en_US"
41 41
         }
42
-EOT;
42
+eot;
43 43
 
44 44
         $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data);
45 45
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             "variant": "MUG_SW",
61 61
             "quantity": 1
62 62
         }
63
-EOT;
63
+eot;
64 64
 
65 65
         $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data);
66 66
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_CREATED);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             },
92 92
             "differentShippingAddress": true
93 93
         }
94
-EOT;
94
+eot;
95 95
 
96 96
         $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId);
97 97
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
                 }
117 117
             ]
118 118
         }
119
-EOT;
119
+eot;
120 120
 
121 121
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
122 122
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
                 }
141 141
             ]
142 142
         }
143
-EOT;
143
+eot;
144 144
 
145 145
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
146 146
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
Please login to merge, or discard this patch.
tests/Controller/CheckoutAddressingApiTest.php 1 patch
Upper-Lower-Casing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         {
58 58
             "differentShippingAddress": false
59 59
         }
60
-EOT;
60
+eot;
61 61
 
62 62
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
63 63
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
             },
91 91
             "differentShippingAddress": false
92 92
         }
93
-EOT;
93
+eot;
94 94
 
95 95
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
96 96
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
             },
126 126
             "differentBillingAddress": false
127 127
         }
128
-EOT;
128
+eot;
129 129
 
130 130
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
131 131
 
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
             },
160 160
             "differentShippingAddress": true
161 161
         }
162
-EOT;
162
+eot;
163 163
 
164 164
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
165 165
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             },
201 201
             "differentShippingAddress": true
202 202
         }
203
-EOT;
203
+eot;
204 204
 
205 205
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
206 206
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             },
249 249
             "differentBillingAddress": true
250 250
         }
251
-EOT;
251
+eot;
252 252
 
253 253
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
254 254
 
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
             },
287 287
             "differentShippingAddress": false
288 288
         }
289
-EOT;
289
+eot;
290 290
 
291 291
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $data);
292 292
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
             },
304 304
             "differentShippingAddress": false
305 305
         }
306
-EOT;
306
+eot;
307 307
 
308 308
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newData);
309 309
 
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
             },
337 337
             "differentShippingAddress": false
338 338
         }
339
-EOT;
339
+eot;
340 340
 
341 341
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $addressData);
342 342
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
             },
356 356
             "differentShippingAddress": false
357 357
         }
358
-EOT;
358
+eot;
359 359
 
360 360
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newAddressData);
361 361
 
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
             },
389 389
             "differentShippingAddress": false
390 390
         }
391
-EOT;
391
+eot;
392 392
 
393 393
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $addressData);
394 394
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
             },
409 409
             "differentShippingAddress": false
410 410
         }
411
-EOT;
411
+eot;
412 412
 
413 413
         $this->client->request('PUT', $this->getAddressingUrl($cartId), [], [], static::$authorizedHeaderWithContentType, $newAddressData);
414 414
 
Please login to merge, or discard this patch.