@@ -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 | /** |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | SessionInterface $session, |
| 46 | 46 | OrderRepositoryInterface $orderRepository, |
| 47 | 47 | OrderInterface $cart |
| 48 | - ) { |
|
| 48 | + ) { |
|
| 49 | 49 | $session->has('session_key_name')->willReturn(true); |
| 50 | 50 | $session->get('session_key_name')->willReturn(12345); |
| 51 | 51 | $orderRepository->findCartById(12345)->willReturn($cart); |
@@ -24,7 +24,8 @@ |
||
| 24 | 24 | |
| 25 | 25 | final class UniqueSimpleProductCodeValidatorSpec extends ObjectBehavior |
| 26 | 26 | { |
| 27 | - function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) { |
|
| 27 | + function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) |
|
| 28 | + { |
|
| 28 | 29 | $this->beConstructedWith($productVariantRepository); |
| 29 | 30 | $this->initialize($context); |
| 30 | 31 | } |
@@ -15,8 +15,6 @@ |
||
| 15 | 15 | use Symfony\Component\Config\FileLocator; |
| 16 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
| 17 | 17 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
| 18 | -use Symfony\Component\DependencyInjection\Parameter; |
|
| 19 | -use Symfony\Component\DependencyInjection\Reference; |
|
| 20 | 18 | |
| 21 | 19 | /** |
| 22 | 20 | * @author Paweł Jędrzejewski <[email protected]> |