@@ -12,10 +12,9 @@ |
||
| 12 | 12 | namespace Sylius\Behat\Context\Ui\Shop; |
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | -use Sylius\Behat\Page\Shop\Product\ShowPageInterface; |
|
| 16 | 15 | use Sylius\Behat\Page\Shop\ProductReview\IndexPageInterface; |
| 16 | +use Sylius\Behat\Page\Shop\Product\ShowPageInterface; |
|
| 17 | 17 | use Sylius\Behat\Page\Shop\Taxon\ShowPageInterface as TaxonShowPageInterface; |
| 18 | -use Sylius\Behat\Page\SymfonyPageInterface; |
|
| 19 | 18 | use Sylius\Component\Core\Model\ProductInterface; |
| 20 | 19 | use Sylius\Component\Core\Model\TaxonInterface; |
| 21 | 20 | use Webmozart\Assert\Assert; |
@@ -20,8 +20,12 @@ |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * @param string $shippingMethod |
| 23 | + * @return void |
|
| 23 | 24 | */ |
| 24 | 25 | public function selectShippingMethod($shippingMethod); |
| 25 | 26 | |
| 27 | + /** |
|
| 28 | + * @return void |
|
| 29 | + */ |
|
| 26 | 30 | public function continueCheckout(); |
| 27 | 31 | } |
@@ -27,6 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * @param string $value |
| 30 | + * @return void |
|
| 30 | 31 | */ |
| 31 | 32 | public function setValue($value); |
| 32 | 33 | } |
@@ -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 | /** |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ) { |
| 87 | 87 | $review = $this->createProductReview($product, $title, $rating, $title, $customer); |
| 88 | 88 | if (null !== $daysSinceCreation) { |
| 89 | - $review->setCreatedAt(new \DateTime('-'.$daysSinceCreation.' days')); |
|
| 89 | + $review->setCreatedAt(new \DateTime('-' . $daysSinceCreation . ' days')); |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | $this->productReviewRepository->add($review); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | { |
| 115 | 115 | $customer = $this->sharedStorage->get('customer'); |
| 116 | 116 | foreach ($rates as $key => $rate) { |
| 117 | - $review = $this->createProductReview($product, 'Title '.$key, $rate, 'Comment '.$key, $customer); |
|
| 117 | + $review = $this->createProductReview($product, 'Title ' . $key, $rate, 'Comment ' . $key, $customer); |
|
| 118 | 118 | $this->productReviewRepository->add($review); |
| 119 | 119 | } |
| 120 | 120 | } |