@@ -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; |
@@ -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 | } |