@@ -20,6 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $shippingMethod |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function selectShippingMethod($shippingMethod); |
| 25 | 26 | |
@@ -50,10 +51,19 @@ discard block |
||
| 50 | 51 | */ |
| 51 | 52 | public function getItemSubtotal($itemName); |
| 52 | 53 | |
| 54 | + /** |
|
| 55 | + * @return void |
|
| 56 | + */ |
|
| 53 | 57 | public function nextStep(); |
| 54 | 58 | |
| 59 | + /** |
|
| 60 | + * @return void |
|
| 61 | + */ |
|
| 55 | 62 | public function changeAddress(); |
| 56 | 63 | |
| 64 | + /** |
|
| 65 | + * @return void |
|
| 66 | + */ |
|
| 57 | 67 | public function changeAddressByStepLabel(); |
| 58 | 68 | |
| 59 | 69 | /** |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | "username": "[email protected]", |
| 36 | 36 | "password": "sylius" |
| 37 | 37 | } |
| 38 | -EOT; |
|
| 38 | +eot; |
|
| 39 | 39 | |
| 40 | 40 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 41 | 41 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | "grant_type": "refresh_token", |
| 59 | 59 | "refresh_token": "SampleRefreshTokenODllODY4ZTQyOThlNWIyMjA1ZDhmZjE1ZDYyMGMwOTUxOWM2NGFmNGRjNjQ2NDBhMDVlNGZjMmQ0YzgyNDM2Ng" |
| 60 | 60 | } |
| 61 | -EOT; |
|
| 61 | +eot; |
|
| 62 | 62 | |
| 63 | 63 | $this->client->request('POST', '/api/oauth/v2/token', [], [], ['CONTENT_TYPE' => 'application/json'], $data); |
| 64 | 64 | |
@@ -20,24 +20,31 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $title |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function titleReview($title); |
| 25 | 26 | |
| 26 | 27 | /** |
| 27 | 28 | * @param string $comment |
| 29 | + * @return void |
|
| 28 | 30 | */ |
| 29 | 31 | public function setComment($comment); |
| 30 | 32 | |
| 31 | 33 | /** |
| 32 | 34 | * @param string $author |
| 35 | + * @return void |
|
| 33 | 36 | */ |
| 34 | 37 | public function setAuthor($author); |
| 35 | 38 | |
| 36 | 39 | /** |
| 37 | 40 | * @param int $rate |
| 41 | + * @return void |
|
| 38 | 42 | */ |
| 39 | 43 | public function rateReview($rate); |
| 40 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 41 | 48 | public function submitReview(); |
| 42 | 49 | |
| 43 | 50 | /** |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType; |
| 15 | 15 | use Symfony\Component\Form\Extension\Core\Type\ChoiceType; |
| 16 | -use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 17 | 16 | use Symfony\Component\Form\Extension\Core\Type\TextType; |
| 17 | +use Symfony\Component\Form\Extension\Core\Type\TextareaType; |
|
| 18 | 18 | use Symfony\Component\Form\FormBuilderInterface; |
| 19 | 19 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 20 | 20 | use Symfony\Component\Validator\Constraints\Valid; |
@@ -47,7 +47,8 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) { |
| 49 | 49 | return function (FormInterface $form) use ($validationGroups) { |
| 50 | - if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent |
|
| 50 | + if ((bool) $form->get('promotionCoupon')->getNormData()) { |
|
| 51 | +// Validate the coupon if it was sent |
|
| 51 | 52 | $validationGroups[] = 'sylius_promotion_coupon'; |
| 52 | 53 | } |
| 53 | 54 | |
@@ -429,6 +429,8 @@ |
||
| 429 | 429 | } |
| 430 | 430 | |
| 431 | 431 | /** |
| 432 | + * @param integer $timeout |
|
| 433 | + * @param string $elementName |
|
| 432 | 434 | * @return bool |
| 433 | 435 | */ |
| 434 | 436 | private function waitForElement($timeout, $elementName) |
@@ -58,16 +58,19 @@ |
||
| 58 | 58 | |
| 59 | 59 | /** |
| 60 | 60 | * @param string $fullName |
| 61 | + * @return void |
|
| 61 | 62 | */ |
| 62 | 63 | public function editAddress($fullName); |
| 63 | 64 | |
| 64 | 65 | /** |
| 65 | 66 | * @param string $fullName |
| 67 | + * @return void |
|
| 66 | 68 | */ |
| 67 | 69 | public function deleteAddress($fullName); |
| 68 | 70 | |
| 69 | 71 | /** |
| 70 | 72 | * @param string $fullName |
| 73 | + * @return void |
|
| 71 | 74 | */ |
| 72 | 75 | public function setAsDefault($fullName); |
| 73 | 76 | } |
@@ -21,6 +21,7 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * @param string $field |
| 23 | 23 | * @param string $value |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function fillField($field, $value); |
| 26 | 27 | |
@@ -36,18 +37,24 @@ discard block |
||
| 36 | 37 | |
| 37 | 38 | /** |
| 38 | 39 | * @param string $name |
| 40 | + * @return void |
|
| 39 | 41 | */ |
| 40 | 42 | public function specifyProvince($name); |
| 41 | 43 | |
| 42 | 44 | /** |
| 43 | 45 | * @param string $name |
| 46 | + * @return void |
|
| 44 | 47 | */ |
| 45 | 48 | public function selectProvince($name); |
| 46 | 49 | |
| 47 | 50 | /** |
| 48 | 51 | * @param string $name |
| 52 | + * @return void |
|
| 49 | 53 | */ |
| 50 | 54 | public function selectCountry($name); |
| 51 | 55 | |
| 56 | + /** |
|
| 57 | + * @return void |
|
| 58 | + */ |
|
| 52 | 59 | public function saveChanges(); |
| 53 | 60 | } |
@@ -42,5 +42,8 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | public function hasResendVerificationEmailButton(); |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @return void |
|
| 47 | + */ |
|
| 45 | 48 | public function pressResendVerificationEmail(); |
| 46 | 49 | } |