@@ -21,9 +21,6 @@ |
||
21 | 21 | use Sylius\Component\Core\Model\OrderInterface; |
22 | 22 | use Sylius\Component\Core\Model\PromotionInterface; |
23 | 23 | use Sylius\Component\Order\Processor\OrderProcessorInterface; |
24 | -use Sylius\Component\Promotion\Action\PromotionApplicatorInterface; |
|
25 | -use Sylius\Component\Promotion\Checker\Eligibility\PromotionEligibilityCheckerInterface; |
|
26 | -use Symfony\Component\EventDispatcher\EventDispatcherInterface; |
|
27 | 24 | use Symfony\Component\HttpFoundation\RedirectResponse; |
28 | 25 | use Symfony\Component\Routing\RouterInterface; |
29 | 26 |
@@ -126,6 +126,7 @@ |
||
126 | 126 | * @Given a customer :customer placed an order :orderNumber |
127 | 127 | * @Given the customer :customer has already placed an order :orderNumber |
128 | 128 | * @Given there is a customer :customer that placed an order :orderNumber in channel :channel |
129 | + * @param string $orderNumber |
|
129 | 130 | */ |
130 | 131 | public function thereIsCustomerThatPlacedOrder(CustomerInterface $customer, $orderNumber = null, $channel = null) |
131 | 132 | { |
@@ -17,13 +17,22 @@ |
||
17 | 17 | |
18 | 18 | interface IndexPageInterface extends BaseIndexPageInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @return void |
|
22 | + */ |
|
20 | 23 | public function chooseStateToFilter(string $paymentState): void; |
21 | 24 | |
25 | + /** |
|
26 | + * @return void |
|
27 | + */ |
|
22 | 28 | public function completePaymentOfOrderWithNumber(string $orderNumber): void; |
23 | 29 | |
24 | 30 | public function getPaymentStateByOrderNumber(string $orderNumber): string; |
25 | 31 | |
26 | 32 | public function isPaymentWithOrderNumberInPosition(string $orderNumber, int $position): bool; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function showOrderPageForNthPayment(int $position): void; |
29 | 38 | } |
@@ -17,13 +17,22 @@ |
||
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 | |
22 | 25 | public function isShipmentWithOrderNumberInPosition(string $orderNumber, int $position): bool; |
23 | 26 | |
27 | + /** |
|
28 | + * @return void |
|
29 | + */ |
|
24 | 30 | public function shipShipmentOfOrderWithNumber(string $orderNumber): void; |
25 | 31 | |
26 | 32 | public function getShipmentStatusByOrderNumber(string $orderNumber): string; |
27 | 33 | |
34 | + /** |
|
35 | + * @return void |
|
36 | + */ |
|
28 | 37 | public function showOrderPageForNthShipment(int $position): void; |
29 | 38 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | function it_generates_random_hashed_path_for_the_image(ImageInterface $image): void |
29 | 29 | { |
30 | - $file = new UploadedFile(__DIR__.'/ford.jpg', 'ford.jpg', null, null, true); |
|
30 | + $file = new UploadedFile(__DIR__ . '/ford.jpg', 'ford.jpg', null, null, true); |
|
31 | 31 | |
32 | 32 | $image->getFile()->willReturn($file); |
33 | 33 |
@@ -153,7 +153,7 @@ |
||
153 | 153 | /** |
154 | 154 | * @Then /^I should see payment for (the "[^"]+" order) as (\d+)(?:|st|nd|rd|th) in the list$/ |
155 | 155 | */ |
156 | - public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber,int $position): void |
|
156 | + public function iShouldSeePaymentForTheOrderInTheList(string $orderNumber, int $position): void |
|
157 | 157 | { |
158 | 158 | Assert::true($this->indexPage->isPaymentWithOrderNumberInPosition($orderNumber, $position)); |
159 | 159 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | function it_generates_random_hashed_path_keeping_the_image_name(ImageInterface $image): void |
29 | 29 | { |
30 | - $file = new UploadedFile(__DIR__.'/ford.jpg', 'ford.jpg', null, null, true); |
|
30 | + $file = new UploadedFile(__DIR__ . '/ford.jpg', 'ford.jpg', null, null, true); |
|
31 | 31 | |
32 | 32 | $image->getFile()->willReturn($file); |
33 | 33 |