Completed
Push — travis-xenial ( 7a72dd...c18ce8 )
by Kamil
12:54 queued 05:28
created
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.
src/Sylius/Behat/Page/Admin/Channel/CreatePageInterface.php 1 patch
Doc Comments   +51 added lines patch added patch discarded remove patch
@@ -17,40 +17,91 @@
 block discarded – undo
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 defineColor(string $color): void;
35 59
 
60
+    /**
61
+     * @return void
62
+     */
36 63
     public function chooseLocale(string $language): void;
37 64
 
65
+    /**
66
+     * @return void
67
+     */
38 68
     public function chooseCurrency(string $currencyCode): void;
39 69
 
70
+    /**
71
+     * @return void
72
+     */
40 73
     public function chooseDefaultTaxZone(string $taxZone): void;
41 74
 
75
+    /**
76
+     * @return void
77
+     */
42 78
     public function chooseDefaultLocale(?string $locale): void;
43 79
 
44 80
     /** @param string[] $countries */
45 81
     public function chooseOperatingCountries(array $countries): void;
46 82
 
83
+    /**
84
+     * @return void
85
+     */
47 86
     public function chooseBaseCurrency(?string $currency): void;
48 87
 
88
+    /**
89
+     * @return void
90
+     */
49 91
     public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void;
50 92
 
93
+    /**
94
+     * @return void
95
+     */
51 96
     public function allowToSkipShippingStep(): void;
52 97
 
98
+    /**
99
+     * @return void
100
+     */
53 101
     public function allowToSkipPaymentStep(): void;
54 102
 
103
+    /**
104
+     * @return void
105
+     */
55 106
     public function specifyMenuTaxon(string $menuTaxon): void;
56 107
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Channel/UpdatePageInterface.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -18,23 +18,45 @@  discard block
 block discarded – undo
18 18
 
19 19
 interface UpdatePageInterface extends BaseUpdatePageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function enable(): void;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function disable(): void;
24 30
 
31
+    /**
32
+     * @return void
33
+     */
25 34
     public function setTheme(string $themeName): void;
26 35
 
27 36
     /**
28 37
      * @throws ElementNotFoundException
38
+     * @return void
29 39
      */
30 40
     public function unsetTheme(): void;
31 41
 
42
+    /**
43
+     * @return void
44
+     */
32 45
     public function chooseLocale(string $language): void;
33 46
 
47
+    /**
48
+     * @return void
49
+     */
34 50
     public function chooseCurrency(string $currencyCode): void;
35 51
 
52
+    /**
53
+     * @return void
54
+     */
36 55
     public function chooseDefaultTaxZone(string $taxZone): void;
37 56
 
57
+    /**
58
+     * @return void
59
+     */
38 60
     public function chooseTaxCalculationStrategy(string $taxCalculationStrategy): void;
39 61
 
40 62
     public function isCodeDisabled(): bool;
@@ -51,6 +73,9 @@  discard block
 block discarded – undo
51 73
 
52 74
     public function isBaseCurrencyDisabled(): bool;
53 75
 
76
+    /**
77
+     * @return void
78
+     */
54 79
     public function changeMenuTaxon(string $menuTaxon): void;
55 80
 
56 81
     public function getMenuTaxon(): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Order/ShowPageInterface.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -28,18 +28,30 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,8 +134,14 @@  discard block
 block discarded – undo
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
 
123 147
     public function getShippedAtDate(): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Shipment/IndexPageInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -17,18 +17,33 @@
 block discarded – undo
17 17
 
18 18
 interface IndexPageInterface extends BaseIndexPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function chooseStateToFilter(string $shipmentState): void;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function chooseChannelFilter(string $channelName): void;
23 29
 
24 30
     public function isShipmentWithOrderNumberInPosition(string $orderNumber, int $position): bool;
25 31
 
32
+    /**
33
+     * @return void
34
+     */
26 35
     public function shipShipmentOfOrderWithNumber(string $orderNumber): void;
27 36
 
28 37
     public function getShipmentStatusByOrderNumber(string $orderNumber): string;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function showOrderPageForNthShipment(int $position): void;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function shipShipmentOfOrderWithTrackingCode(string $orderNumber, string $trackingCode): void;
33 48
 
34 49
     public function getShippedAtDate(string $orderNumber): string;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/AddressBook/CreatePageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -18,10 +18,19 @@
 block discarded – undo
18 18
 
19 19
 interface CreatePageInterface extends SymfonyPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function fillAddressData(AddressInterface $address): void;
22 25
 
26
+    /**
27
+     * @return void
28
+     */
23 29
     public function selectCountry(string $name): void;
24 30
 
31
+    /**
32
+     * @return void
33
+     */
25 34
     public function addAddress(): void;
26 35
 
27 36
     public function hasProvinceValidationMessage(): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/AddressBook/IndexPageInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -32,9 +32,18 @@
 block discarded – undo
32 32
 
33 33
     public function addressOfContains(string $fullName, string $value): bool;
34 34
 
35
+    /**
36
+     * @return void
37
+     */
35 38
     public function editAddress(string $fullName): void;
36 39
 
40
+    /**
41
+     * @return void
42
+     */
37 43
     public function deleteAddress(string $fullName): void;
38 44
 
45
+    /**
46
+     * @return void
47
+     */
39 48
     public function setAsDefault(string $fullName): void;
40 49
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Account/AddressBook/UpdatePageInterface.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -17,17 +17,32 @@
 block discarded – undo
17 17
 
18 18
 interface UpdatePageInterface extends SymfonyPageInterface
19 19
 {
20
+    /**
21
+     * @return void
22
+     */
20 23
     public function fillField(string $field, ?string $value): void;
21 24
 
22 25
     public function getSpecifiedProvince(): string;
23 26
 
24 27
     public function getSelectedProvince(): string;
25 28
 
29
+    /**
30
+     * @return void
31
+     */
26 32
     public function specifyProvince(string $name): void;
27 33
 
34
+    /**
35
+     * @return void
36
+     */
28 37
     public function selectProvince(string $name): void;
29 38
 
39
+    /**
40
+     * @return void
41
+     */
30 42
     public function selectCountry(string $name): void;
31 43
 
44
+    /**
45
+     * @return void
46
+     */
32 47
     public function saveChanges(): void;
33 48
 }
Please login to merge, or discard this patch.