@@ -150,10 +150,10 @@ |
||
| 150 | 150 | public function iShouldSeeTheShippingDateAs(OrderInterface $order, string $dateTime): void |
| 151 | 151 | { |
| 152 | 152 | Assert::eq( |
| 153 | - new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')), |
|
| 154 | - new \DateTime($dateTime), |
|
| 155 | - 'Shipment was shipped in different date' |
|
| 156 | - ); |
|
| 153 | + new \DateTime($this->responseChecker->getValue($this->client->show((string) $order->getShipments()->first()->getId()), 'shippedAt')), |
|
| 154 | + new \DateTime($dateTime), |
|
| 155 | + 'Shipment was shipped in different date' |
|
| 156 | + ); |
|
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | /** |
@@ -23,7 +23,6 @@ |
||
| 23 | 23 | use Sylius\Component\Core\Model\OrderInterface; |
| 24 | 24 | use Sylius\Component\Core\Model\ProductInterface; |
| 25 | 25 | use Sylius\Component\Customer\Model\CustomerInterface; |
| 26 | -use Sylius\Component\Shipping\Model\ShipmentUnitInterface; |
|
| 27 | 26 | use Sylius\Component\Shipping\ShipmentTransitions; |
| 28 | 27 | use Webmozart\Assert\Assert; |
| 29 | 28 | |
@@ -19,11 +19,8 @@ |
||
| 19 | 19 | use Sylius\Component\Core\Model\ChannelInterface; |
| 20 | 20 | use Sylius\Component\Core\Model\ProductInterface; |
| 21 | 21 | use Sylius\Component\Core\Model\TaxonInterface; |
| 22 | -use Sylius\Component\Customer\Context\CustomerContextInterface; |
|
| 23 | 22 | use Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface; |
| 24 | 23 | use Sylius\Component\User\Model\UserInterface; |
| 25 | -use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
|
| 26 | -use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
|
| 27 | 24 | |
| 28 | 25 | final class TaxonCollectionDataProviderSpec extends ObjectBehavior |
| 29 | 26 | { |
@@ -17,5 +17,5 @@ |
||
| 17 | 17 | |
| 18 | 18 | interface UserContextInterface |
| 19 | 19 | { |
| 20 | - public function getUser(): ?UserInterface; |
|
| 20 | + public function getUser(): ?UserInterface; |
|
| 21 | 21 | } |