@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface; |
| 17 | 16 | use Sylius\Bundle\FixturesBundle\Listener\AfterFixtureListenerInterface; |
| 18 | 17 | use Sylius\Bundle\FixturesBundle\Listener\BeforeFixtureListenerInterface; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Bundle\FixturesBundle\Listener\AfterSuiteListenerInterface; |
| 17 | 16 | use Sylius\Bundle\FixturesBundle\Listener\BeforeSuiteListenerInterface; |
| 18 | 17 | use Sylius\Bundle\FixturesBundle\Listener\SuiteEvent; |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | namespace spec\Sylius\Bundle\FixturesBundle\Loader; |
| 13 | 13 | |
| 14 | 14 | use PhpSpec\ObjectBehavior; |
| 15 | -use Prophecy\Argument; |
|
| 16 | 15 | use Sylius\Bundle\FixturesBundle\Fixture\FixtureInterface; |
| 17 | 16 | use Sylius\Bundle\FixturesBundle\Loader\FixtureLoaderInterface; |
| 18 | 17 | use Sylius\Bundle\FixturesBundle\Loader\SuiteLoader; |
@@ -13,8 +13,8 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Doctrine\Common\Persistence\ObjectManager; |
| 15 | 15 | use Sylius\Component\Review\Calculator\ReviewableRatingCalculatorInterface; |
| 16 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 17 | 16 | use Sylius\Component\Review\Model\ReviewInterface; |
| 17 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * @author Mateusz Zalewski <[email protected]> |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace Sylius\Bundle\ReviewBundle\Updater; |
| 13 | 13 | |
| 14 | -use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 15 | 14 | use Sylius\Component\Review\Model\ReviewInterface; |
| 15 | +use Sylius\Component\Review\Model\ReviewableInterface; |
|
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | * @author Mateusz Zalewski <[email protected]> |
@@ -16,9 +16,9 @@ |
||
| 16 | 16 | use Sylius\Component\Customer\Model\CustomerAwareInterface; |
| 17 | 17 | use Sylius\Component\Order\Model\OrderInterface as BaseOrderInterface; |
| 18 | 18 | use Sylius\Component\Payment\Model\PaymentsSubjectInterface; |
| 19 | -use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
| 20 | 19 | use Sylius\Component\Promotion\Model\CountablePromotionSubjectInterface; |
| 21 | 20 | use Sylius\Component\Promotion\Model\PromotionCouponAwarePromotionSubjectInterface; |
| 21 | +use Sylius\Component\Promotion\Model\PromotionCouponInterface as BaseCouponInterface; |
|
| 22 | 22 | use Sylius\Component\User\Model\UserInterface; |
| 23 | 23 | |
| 24 | 24 | /** |
@@ -13,10 +13,10 @@ |
||
| 13 | 13 | |
| 14 | 14 | use SM\Factory\FactoryInterface; |
| 15 | 15 | use SM\StateMachine\StateMachineInterface; |
| 16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
| 17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 18 | 16 | use Sylius\Component\Core\Model\PaymentInterface; |
| 19 | 17 | use Sylius\Component\Core\OrderPaymentTransitions; |
| 18 | +use Sylius\Component\Order\Model\OrderInterface; |
|
| 19 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | |
| 14 | 14 | use SM\Factory\FactoryInterface; |
| 15 | 15 | use SM\StateMachine\StateMachineInterface; |
| 16 | -use Sylius\Component\Order\Model\OrderInterface; |
|
| 17 | -use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 18 | 16 | use Sylius\Component\Core\Model\ShipmentInterface; |
| 19 | 17 | use Sylius\Component\Core\OrderShippingStates; |
| 20 | 18 | use Sylius\Component\Core\OrderShippingTransitions; |
| 19 | +use Sylius\Component\Order\Model\OrderInterface; |
|
| 20 | +use Sylius\Component\Order\StateResolver\StateResolverInterface; |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -969,7 +969,7 @@ discard block |
||
| 969 | 969 | ], |
| 970 | 970 | ]; |
| 971 | 971 | $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST']) |
| 972 | - ->willReturn($createRoute); |
|
| 972 | + ->willReturn($createRoute); |
|
| 973 | 973 | $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled(); |
| 974 | 974 | |
| 975 | 975 | $updateDefaults = [ |
@@ -979,7 +979,7 @@ discard block |
||
| 979 | 979 | ], |
| 980 | 980 | ]; |
| 981 | 981 | $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH']) |
| 982 | - ->willReturn($updateRoute); |
|
| 982 | + ->willReturn($updateRoute); |
|
| 983 | 983 | $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled(); |
| 984 | 984 | |
| 985 | 985 | $deleteDefaults = [ |
@@ -989,7 +989,7 @@ discard block |
||
| 989 | 989 | ], |
| 990 | 990 | ]; |
| 991 | 991 | $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE']) |
| 992 | - ->willReturn($deleteRoute); |
|
| 992 | + ->willReturn($deleteRoute); |
|
| 993 | 993 | $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled(); |
| 994 | 994 | |
| 995 | 995 | $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection); |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | namespace spec\Sylius\Bundle\ResourceBundle\Routing; |
| 15 | 15 | |
| 16 | 16 | use PhpSpec\ObjectBehavior; |
| 17 | -use Sylius\Bundle\ResourceBundle\Routing\ResourceLoader; |
|
| 18 | 17 | use Sylius\Bundle\ResourceBundle\Routing\RouteFactoryInterface; |
| 19 | 18 | use Sylius\Component\Resource\Metadata\MetadataInterface; |
| 20 | 19 | use Sylius\Component\Resource\Metadata\RegistryInterface; |