@@ -15,8 +15,8 @@ |
||
15 | 15 | use Prophecy\Argument; |
16 | 16 | use Sylius\Component\Core\Model\AdjustmentInterface; |
17 | 17 | use Sylius\Component\Core\Model\OrderInterface; |
18 | -use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
19 | 18 | use Sylius\Component\Core\OrderProcessing\ShippingChargesProcessor; |
19 | +use Sylius\Component\Order\Processor\OrderProcessorInterface; |
|
20 | 20 | use Sylius\Component\Resource\Factory\FactoryInterface; |
21 | 21 | use Sylius\Component\Shipping\Calculator\DelegatingCalculatorInterface; |
22 | 22 | use Sylius\Component\Shipping\Model\ShipmentInterface; |
@@ -17,7 +17,6 @@ |
||
17 | 17 | use Sylius\Component\Addressing\Model\ZoneInterface; |
18 | 18 | use Sylius\Component\Addressing\Repository\ZoneRepositoryInterface; |
19 | 19 | use Sylius\Component\Core\Formatter\StringInflector; |
20 | -use Sylius\Component\Core\Model\ChannelInterface; |
|
21 | 20 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
22 | 21 | use Sylius\Component\Resource\Factory\FactoryInterface; |
23 | 22 | use Sylius\Component\Shipping\Calculator\DefaultCalculators; |
@@ -13,14 +13,10 @@ |
||
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Sylius\Component\Core\Model\OrderInterface; |
16 | -use Sylius\Component\Core\Model\OrderItem; |
|
17 | 16 | use Sylius\Component\Core\Model\OrderItemInterface; |
18 | 17 | use Sylius\Component\Core\Model\ProductInterface; |
19 | -use Sylius\Component\Core\Model\ProductVariant; |
|
20 | -use Sylius\Component\Core\Model\ProductVariantInterface; |
|
21 | 18 | use Sylius\Component\Core\Promotion\Checker\Rule\ContainsProductRuleChecker; |
22 | 19 | use Sylius\Component\Promotion\Checker\Rule\RuleCheckerInterface; |
23 | -use Sylius\Component\Promotion\Exception\UnsupportedTypeException; |
|
24 | 20 | use Sylius\Component\Promotion\Model\PromotionSubjectInterface; |
25 | 21 | use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
26 | 22 |
@@ -24,7 +24,6 @@ |
||
24 | 24 | use Sylius\Component\Promotion\Action\PromotionActionInterface; |
25 | 25 | use Sylius\Component\Promotion\Model\PromotionInterface; |
26 | 26 | use Sylius\Component\Promotion\Model\PromotionSubjectInterface; |
27 | -use Sylius\Component\Resource\Exception\UnexpectedTypeException; |
|
28 | 27 | |
29 | 28 | /** |
30 | 29 | * @mixin PercentageDiscountAction |
@@ -14,9 +14,9 @@ |
||
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | 15 | use Sylius\Component\Core\Calculator\ProductVariantPriceCalculatorInterface; |
16 | 16 | use Sylius\Component\Core\Model\ChannelInterface; |
17 | -use Sylius\Component\Core\Provider\ProductVariantsPricesProvider; |
|
18 | 17 | use Sylius\Component\Core\Model\ProductInterface; |
19 | 18 | use Sylius\Component\Core\Model\ProductVariantInterface; |
19 | +use Sylius\Component\Core\Provider\ProductVariantsPricesProvider; |
|
20 | 20 | use Sylius\Component\Core\Provider\ProductVariantsPricesProviderInterface; |
21 | 21 | use Sylius\Component\Product\Model\ProductOptionValueInterface; |
22 | 22 |
@@ -11,14 +11,14 @@ |
||
11 | 11 | |
12 | 12 | namespace spec\Sylius\Component\Core\Resolver; |
13 | 13 | |
14 | +use PhpSpec\ObjectBehavior; |
|
14 | 15 | use Sylius\Component\Core\Model\ChannelInterface; |
15 | 16 | use Sylius\Component\Core\Model\OrderInterface; |
16 | 17 | use Sylius\Component\Core\Model\PaymentInterface; |
17 | 18 | use Sylius\Component\Core\Repository\PaymentMethodRepositoryInterface; |
18 | 19 | use Sylius\Component\Core\Resolver\ChannelBasedPaymentMethodsResolver; |
19 | -use PhpSpec\ObjectBehavior; |
|
20 | -use Sylius\Component\Payment\Model\PaymentMethodInterface; |
|
21 | 20 | use Sylius\Component\Payment\Model\PaymentInterface as BasePaymentInterface; |
21 | +use Sylius\Component\Payment\Model\PaymentMethodInterface; |
|
22 | 22 | use Sylius\Component\Payment\Resolver\PaymentMethodsResolverInterface; |
23 | 23 | |
24 | 24 | /** |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Component\Core\Shipping\Calculator; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Sylius\Component\Channel\Context\ChannelContextInterface; |
|
16 | 15 | use Sylius\Component\Core\Model\ChannelInterface; |
17 | 16 | use Sylius\Component\Core\Model\OrderInterface; |
18 | 17 | use Sylius\Component\Core\Model\ShipmentInterface; |
@@ -12,7 +12,6 @@ |
||
12 | 12 | namespace spec\Sylius\Component\Payment\Resolver; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | 15 | use Sylius\Component\Payment\Model\PaymentInterface; |
17 | 16 | use Sylius\Component\Payment\Model\PaymentMethodInterface; |
18 | 17 | use Sylius\Component\Payment\Resolver\MethodsResolverInterface; |
@@ -23,7 +23,6 @@ |
||
23 | 23 | use Sylius\Component\Core\Model\AdminUserInterface; |
24 | 24 | use Sylius\Component\Core\Model\CustomerInterface; |
25 | 25 | use Sylius\Component\Core\Model\OrderInterface; |
26 | -use Sylius\Component\Core\OrderPaymentStates; |
|
27 | 26 | use Webmozart\Assert\Assert; |
28 | 27 | |
29 | 28 | /** |