@@ -25,6 +25,6 @@ |
||
25 | 25 | */ |
26 | 26 | public function generate(OrderInterface $order, PaymentInterface $payment) |
27 | 27 | { |
28 | - return mt_rand(1, 100000).'-'.mt_rand(1, 100000); |
|
28 | + return mt_rand(1, 100000) . '-' . mt_rand(1, 100000); |
|
29 | 29 | } |
30 | 30 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
85 | 85 | $products = $this->loadFixturesFromFile('resources/products.yml'); |
86 | 86 | |
87 | - $this->client->request('GET', '/api/v1/products/'.$products['product1']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
87 | + $this->client->request('GET', '/api/v1/products/' . $products['product1']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
88 | 88 | |
89 | 89 | $response = $this->client->getResponse(); |
90 | 90 | $this->assertResponse($response, 'product/show_response', Response::HTTP_OK); |
@@ -111,12 +111,12 @@ discard block |
||
111 | 111 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
112 | 112 | $products = $this->loadFixturesFromFile('resources/products.yml'); |
113 | 113 | |
114 | - $this->client->request('DELETE', '/api/v1/products/'.$products['product1']->getId(), [], [], static::$authorizedHeaderWithContentType, []); |
|
114 | + $this->client->request('DELETE', '/api/v1/products/' . $products['product1']->getId(), [], [], static::$authorizedHeaderWithContentType, []); |
|
115 | 115 | |
116 | 116 | $response = $this->client->getResponse(); |
117 | 117 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
118 | 118 | |
119 | - $this->client->request('GET', '/api/v1/products/'.$products['product1']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
119 | + $this->client->request('GET', '/api/v1/products/' . $products['product1']->getId(), [], [], static::$authorizedHeaderWithAccept); |
|
120 | 120 | |
121 | 121 | $response = $this->client->getResponse(); |
122 | 122 | $this->assertResponse($response, 'error/not_found_response', Response::HTTP_NOT_FOUND); |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | } |
187 | 187 | } |
188 | 188 | EOT; |
189 | - $this->client->request('PUT', '/api/v1/products/'. $products["product3"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
189 | + $this->client->request('PUT', '/api/v1/products/' . $products["product3"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
190 | 190 | $response = $this->client->getResponse(); |
191 | 191 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
192 | 192 | } |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | } |
211 | 211 | } |
212 | 212 | EOT; |
213 | - $this->client->request('PATCH', '/api/v1/products/'. $products["product1"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
213 | + $this->client->request('PATCH', '/api/v1/products/' . $products["product1"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
|
214 | 214 | $response = $this->client->getResponse(); |
215 | 215 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
216 | 216 | } |
@@ -280,7 +280,7 @@ |
||
280 | 280 | /** |
281 | 281 | * @test |
282 | 282 | */ |
283 | - public function it_allows_creating_product_with_main_taxon() |
|
283 | + public function it_allows_creating_product_with_main_taxon() |
|
284 | 284 | { |
285 | 285 | $this->loadFixturesFromFile('authentication/api_administrator.yml'); |
286 | 286 | $this->loadFixturesFromFile('resources/taxons.yml'); |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | } |
148 | 148 | } |
149 | 149 | } |
150 | -EOT; |
|
150 | +eot; |
|
151 | 151 | |
152 | 152 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
153 | 153 | |
@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | } |
189 | 189 | } |
190 | -EOT; |
|
190 | +eot; |
|
191 | 191 | $this->client->request('PUT', '/api/v1/products/'. $products["product3"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
192 | 192 | $response = $this->client->getResponse(); |
193 | 193 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | } |
212 | 212 | } |
213 | 213 | } |
214 | -EOT; |
|
214 | +eot; |
|
215 | 215 | $this->client->request('PATCH', '/api/v1/products/'. $products["product1"]->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
216 | 216 | $response = $this->client->getResponse(); |
217 | 217 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | } |
270 | 270 | } |
271 | 271 | } |
272 | -EOT; |
|
272 | +eot; |
|
273 | 273 | |
274 | 274 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
275 | 275 | |
@@ -298,7 +298,7 @@ discard block |
||
298 | 298 | } |
299 | 299 | } |
300 | 300 | } |
301 | -EOT; |
|
301 | +eot; |
|
302 | 302 | |
303 | 303 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
304 | 304 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | }, |
328 | 328 | "product_taxons": "YELLOW_MUGS,MUGS" |
329 | 329 | } |
330 | -EOT; |
|
330 | +eot; |
|
331 | 331 | |
332 | 332 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
333 | 333 | |
@@ -358,7 +358,7 @@ discard block |
||
358 | 358 | } |
359 | 359 | } |
360 | 360 | } |
361 | -EOT; |
|
361 | +eot; |
|
362 | 362 | |
363 | 363 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
364 | 364 | |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | } |
399 | 399 | } |
400 | 400 | } |
401 | -EOT; |
|
401 | +eot; |
|
402 | 402 | |
403 | 403 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
404 | 404 | |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | } |
434 | 434 | } |
435 | 435 | } |
436 | -EOT; |
|
436 | +eot; |
|
437 | 437 | |
438 | 438 | $this->client->request( |
439 | 439 | 'POST', |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | } |
477 | 477 | } |
478 | 478 | } |
479 | -EOT; |
|
479 | +eot; |
|
480 | 480 | |
481 | 481 | $this->client->request('POST', '/api/v1/products/', [], [], static::$authorizedHeaderWithContentType, $data); |
482 | 482 |
@@ -25,15 +25,20 @@ |
||
25 | 25 | */ |
26 | 26 | public function hasValidationErrorWith($message); |
27 | 27 | |
28 | + /** |
|
29 | + * @return void |
|
30 | + */ |
|
28 | 31 | public function logIn(); |
29 | 32 | |
30 | 33 | /** |
31 | 34 | * @param string $password |
35 | + * @return void |
|
32 | 36 | */ |
33 | 37 | public function specifyPassword($password); |
34 | 38 | |
35 | 39 | /** |
36 | 40 | * @param string $username |
41 | + * @return void |
|
37 | 42 | */ |
38 | 43 | public function specifyUsername($username); |
39 | 44 | } |
@@ -18,25 +18,32 @@ |
||
18 | 18 | */ |
19 | 19 | interface CreatePageInterface extends BaseCreatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
22 | 25 | |
23 | 26 | /** |
24 | 27 | * @param string $username |
28 | + * @return void |
|
25 | 29 | */ |
26 | 30 | public function specifyUsername($username); |
27 | 31 | |
28 | 32 | /** |
29 | 33 | * @param string $email |
34 | + * @return void |
|
30 | 35 | */ |
31 | 36 | public function specifyEmail($email); |
32 | 37 | |
33 | 38 | /** |
34 | 39 | * @param string $password |
40 | + * @return void |
|
35 | 41 | */ |
36 | 42 | public function specifyPassword($password); |
37 | 43 | |
38 | 44 | /** |
39 | 45 | * @param string $localeCode |
46 | + * @return void |
|
40 | 47 | */ |
41 | 48 | public function specifyLocale($localeCode); |
42 | 49 | } |
@@ -20,21 +20,25 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $username |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function changeUsername($username); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param string $email |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function changeEmail($email); |
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @param string $password |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function changePassword($password); |
35 | 38 | |
36 | 39 | /** |
37 | 40 | * @param string $localeCode |
41 | + * @return void |
|
38 | 42 | */ |
39 | 43 | public function changeLocale($localeCode); |
40 | 44 | } |
@@ -19,17 +19,25 @@ discard block |
||
19 | 19 | */ |
20 | 20 | interface UpdatePageInterface extends BaseUpdatePageInterface |
21 | 21 | { |
22 | + /** |
|
23 | + * @return void |
|
24 | + */ |
|
22 | 25 | public function enable(); |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function disable(); |
25 | 31 | |
26 | 32 | /** |
27 | 33 | * @param string $themeName |
34 | + * @return void |
|
28 | 35 | */ |
29 | 36 | public function setTheme($themeName); |
30 | 37 | |
31 | 38 | /** |
32 | 39 | * @throws ElementNotFoundException |
40 | + * @return void |
|
33 | 41 | */ |
34 | 42 | public function unsetTheme(); |
35 | 43 | |
@@ -40,6 +48,7 @@ discard block |
||
40 | 48 | |
41 | 49 | /** |
42 | 50 | * @param string $language |
51 | + * @return void |
|
43 | 52 | */ |
44 | 53 | public function chooseLocale($language); |
45 | 54 | |
@@ -52,6 +61,7 @@ discard block |
||
52 | 61 | |
53 | 62 | /** |
54 | 63 | * @param string $currencyCode |
64 | + * @return void |
|
55 | 65 | */ |
56 | 66 | public function chooseCurrency($currencyCode); |
57 | 67 | |
@@ -64,11 +74,13 @@ discard block |
||
64 | 74 | |
65 | 75 | /** |
66 | 76 | * @param string $taxZone |
77 | + * @return void |
|
67 | 78 | */ |
68 | 79 | public function chooseDefaultTaxZone($taxZone); |
69 | 80 | |
70 | 81 | /** |
71 | 82 | * @param string $taxCalculationStrategy |
83 | + * @return void |
|
72 | 84 | */ |
73 | 85 | public function chooseTaxCalculationStrategy($taxCalculationStrategy); |
74 | 86 |
@@ -43,6 +43,7 @@ discard block |
||
43 | 43 | |
44 | 44 | /** |
45 | 45 | * @param string $fieldName |
46 | + * @return void |
|
46 | 47 | */ |
47 | 48 | public function sortBy($fieldName); |
48 | 49 | |
@@ -65,5 +66,8 @@ discard block |
||
65 | 66 | */ |
66 | 67 | public function countItems(); |
67 | 68 | |
69 | + /** |
|
70 | + * @return void |
|
71 | + */ |
|
68 | 72 | public function filter(); |
69 | 73 | } |
@@ -18,7 +18,14 @@ discard block |
||
18 | 18 | */ |
19 | 19 | interface UpdatePageInterface extends BaseUpdatePageInterface |
20 | 20 | { |
21 | + /** |
|
22 | + * @return void |
|
23 | + */ |
|
21 | 24 | public function enable(); |
25 | + |
|
26 | + /** |
|
27 | + * @return void |
|
28 | + */ |
|
22 | 29 | public function disable(); |
23 | 30 | |
24 | 31 | /** |
@@ -33,6 +40,7 @@ discard block |
||
33 | 40 | |
34 | 41 | /** |
35 | 42 | * @param string $exchangeRate |
43 | + * @return void |
|
36 | 44 | */ |
37 | 45 | public function changeExchangeRate($exchangeRate); |
38 | 46 |
@@ -20,39 +20,49 @@ |
||
20 | 20 | { |
21 | 21 | /** |
22 | 22 | * @param string $name |
23 | + * @return void |
|
23 | 24 | */ |
24 | 25 | public function specifyFirstName($name); |
25 | 26 | |
26 | 27 | /** |
27 | 28 | * @param string $name |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function specifyLastName($name); |
30 | 32 | |
31 | 33 | /** |
32 | 34 | * @param string $email |
35 | + * @return void |
|
33 | 36 | */ |
34 | 37 | public function specifyEmail($email); |
35 | 38 | |
36 | 39 | /** |
37 | 40 | * @param string $birthday |
41 | + * @return void |
|
38 | 42 | */ |
39 | 43 | public function specifyBirthday($birthday); |
40 | 44 | |
41 | 45 | /** |
42 | 46 | * @param string $password |
47 | + * @return void |
|
43 | 48 | */ |
44 | 49 | public function specifyPassword($password); |
45 | 50 | |
46 | 51 | /** |
47 | 52 | * @param string $gender |
53 | + * @return void |
|
48 | 54 | */ |
49 | 55 | public function chooseGender($gender); |
50 | 56 | |
51 | 57 | /** |
52 | 58 | * @param string $group |
59 | + * @return void |
|
53 | 60 | */ |
54 | 61 | public function chooseGroup($group); |
55 | 62 | |
63 | + /** |
|
64 | + * @return void |
|
65 | + */ |
|
56 | 66 | public function selectCreateAccount(); |
57 | 67 | |
58 | 68 | /** |