@@ -14,19 +14,19 @@ |
||
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | use Doctrine\Common\Persistence\ObjectManager; |
| 16 | 16 | use SM\Factory\FactoryInterface as StateMachineFactoryInterface; |
| 17 | +use Sylius\Component\Core\Model\AddressInterface; |
|
| 17 | 18 | use Sylius\Component\Core\Model\ChannelInterface; |
| 18 | 19 | use Sylius\Component\Core\Model\CouponInterface; |
| 19 | -use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface; |
|
| 20 | -use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 21 | -use Sylius\Component\Core\Model\AddressInterface; |
|
| 22 | 20 | use Sylius\Component\Core\Model\OrderInterface; |
| 23 | 21 | use Sylius\Component\Core\Model\OrderItemInterface; |
| 24 | 22 | use Sylius\Component\Core\Model\ProductInterface; |
| 25 | 23 | use Sylius\Component\Core\Model\ProductVariantInterface; |
| 26 | 24 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
| 25 | +use Sylius\Component\Core\OrderProcessing\OrderRecalculatorInterface; |
|
| 27 | 26 | use Sylius\Component\Core\OrderProcessing\OrderShipmentProcessorInterface; |
| 28 | 27 | use Sylius\Component\Core\Repository\OrderRepositoryInterface; |
| 29 | 28 | use Sylius\Component\Core\Test\Services\SharedStorageInterface; |
| 29 | +use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface; |
|
| 30 | 30 | use Sylius\Component\Order\OrderTransitions; |
| 31 | 31 | use Sylius\Component\Payment\Factory\PaymentFactoryInterface; |
| 32 | 32 | use Sylius\Component\Payment\Model\PaymentInterface; |
@@ -175,6 +175,7 @@ discard block |
||
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | 177 | * @Given /^([^"]+) gives ("[^"]+%") discount on shipping to every order$/ |
| 178 | + * @param integer $discount |
|
| 178 | 179 | */ |
| 179 | 180 | public function itGivesPercentageDiscountOnShippingToEveryOrder(PromotionInterface $promotion, $discount) |
| 180 | 181 | { |
@@ -429,7 +430,7 @@ discard block |
||
| 429 | 430 | } |
| 430 | 431 | |
| 431 | 432 | /** |
| 432 | - * @param array $taxonCodes |
|
| 433 | + * @param string[] $taxonCodes |
|
| 433 | 434 | * |
| 434 | 435 | * @return array |
| 435 | 436 | */ |
@@ -458,6 +459,7 @@ discard block |
||
| 458 | 459 | * @param PromotionInterface $promotion |
| 459 | 460 | * @param int $discount |
| 460 | 461 | * @param array $configuration |
| 462 | + * @param RuleInterface $rule |
|
| 461 | 463 | */ |
| 462 | 464 | private function createUnitFixedPromotion(PromotionInterface $promotion, $discount, array $configuration = [], $rule = null) |
| 463 | 465 | { |
@@ -468,6 +470,7 @@ discard block |
||
| 468 | 470 | * @param PromotionInterface $promotion |
| 469 | 471 | * @param int $discount |
| 470 | 472 | * @param array $configuration |
| 473 | + * @param RuleInterface $rule |
|
| 471 | 474 | */ |
| 472 | 475 | private function createUnitPercentagePromotion(PromotionInterface $promotion, $discount, array $configuration = [], $rule = null) |
| 473 | 476 | { |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use Sylius\Component\Core\Model\ShippingMethodInterface; |
| 19 | 19 | use Sylius\Component\Core\Test\Services\SharedStorageInterface; |
| 20 | 20 | use Sylius\Component\Resource\Factory\FactoryInterface; |
| 21 | -use Sylius\Component\Resource\Repository\RepositoryInterface; |
|
| 22 | 21 | use Sylius\Component\Shipping\Calculator\DefaultCalculators; |
| 23 | 22 | use Sylius\Component\Shipping\Repository\ShippingMethodRepositoryInterface; |
| 24 | 23 | use Sylius\Component\Taxation\Model\TaxCategoryInterface; |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | namespace Sylius\Behat\Context\Ui\Admin; |
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | -use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
|
| 16 | 15 | use Sylius\Behat\Page\Admin\Crud\IndexPageInterface; |
| 16 | +use Sylius\Behat\Page\Admin\Crud\UpdatePageInterface; |
|
| 17 | 17 | use Sylius\Behat\Page\Admin\Customer\CreatePageInterface; |
| 18 | 18 | use Sylius\Component\User\Model\CustomerInterface; |
| 19 | 19 | use Webmozart\Assert\Assert; |
@@ -134,6 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | /** |
| 136 | 136 | * @Then the :productVariantCode variant of the :product product should appear in the shop |
| 137 | + * @param string $productVariantCode |
|
| 137 | 138 | */ |
| 138 | 139 | public function theProductVariantShouldAppearInTheShop($productVariantCode, ProductInterface $product) |
| 139 | 140 | { |
@@ -280,6 +281,7 @@ discard block |
||
| 280 | 281 | |
| 281 | 282 | /** |
| 282 | 283 | * @param string $element |
| 284 | + * @param string $message |
|
| 283 | 285 | */ |
| 284 | 286 | private function assertValidationMessage($element, $message) |
| 285 | 287 | { |
@@ -337,6 +337,7 @@ |
||
| 337 | 337 | |
| 338 | 338 | /** |
| 339 | 339 | * @When /^I proceed selecting "([^"]*)" as shipping country with "([^"]*)" payment method$/ |
| 340 | + * @param string $paymentMethodName |
|
| 340 | 341 | */ |
| 341 | 342 | public function iProceedSelectingShippingCountryAndPaymentMethod($shippingCountry, $paymentMethodName) |
| 342 | 343 | { |
@@ -13,18 +13,18 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | 15 | use Sylius\Behat\Page\Shop\Checkout\AddressingPageInterface; |
| 16 | -use Sylius\Behat\Page\Shop\Checkout\PaymentPageInterface; |
|
| 17 | -use Sylius\Behat\Page\Shop\Checkout\ShippingPageInterface; |
|
| 18 | -use Sylius\Behat\Page\Shop\Checkout\SummaryPageInterface; |
|
| 19 | -use Sylius\Behat\Page\Shop\Order\OrderPaymentsPageInterface; |
|
| 20 | 16 | use Sylius\Behat\Page\Shop\Checkout\AddressingStepInterface; |
| 21 | 17 | use Sylius\Behat\Page\Shop\Checkout\FinalizeStepInterface; |
| 18 | +use Sylius\Behat\Page\Shop\Checkout\PaymentPageInterface; |
|
| 22 | 19 | use Sylius\Behat\Page\Shop\Checkout\PaymentStepInterface; |
| 23 | 20 | use Sylius\Behat\Page\Shop\Checkout\SecurityStepInterface; |
| 21 | +use Sylius\Behat\Page\Shop\Checkout\ShippingPageInterface; |
|
| 24 | 22 | use Sylius\Behat\Page\Shop\Checkout\ShippingStepInterface; |
| 23 | +use Sylius\Behat\Page\Shop\Checkout\SummaryPageInterface; |
|
| 25 | 24 | use Sylius\Behat\Page\Shop\Checkout\ThankYouPageInterface; |
| 26 | -use Sylius\Component\Core\Formatter\StringInflector; |
|
| 25 | +use Sylius\Behat\Page\Shop\Order\OrderPaymentsPageInterface; |
|
| 27 | 26 | use Sylius\Behat\Service\SecurityServiceInterface; |
| 27 | +use Sylius\Component\Core\Formatter\StringInflector; |
|
| 28 | 28 | use Sylius\Component\Core\Model\AddressInterface; |
| 29 | 29 | use Sylius\Component\Core\Model\OrderInterface; |
| 30 | 30 | use Sylius\Component\Core\Model\ProductInterface; |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | namespace Sylius\Behat\Context\Ui; |
| 13 | 13 | |
| 14 | 14 | use Behat\Behat\Context\Context; |
| 15 | -use Sylius\Behat\Page\Shop\Checkout\FinalizeStepInterface; |
|
| 16 | 15 | use Sylius\Behat\Page\External\PaypalExpressCheckoutPageInterface; |
| 16 | +use Sylius\Behat\Page\Shop\Checkout\FinalizeStepInterface; |
|
| 17 | 17 | use Sylius\Behat\Page\Shop\Order\OrderPaymentsPageInterface; |
| 18 | 18 | use Sylius\Behat\Service\Mocker\PaypalApiMocker; |
| 19 | 19 | use Sylius\Component\Core\Model\OrderInterface; |
@@ -18,8 +18,8 @@ |
||
| 18 | 18 | use Behat\Testwork\Environment\Handler\EnvironmentHandler; |
| 19 | 19 | use Behat\Testwork\Suite\Exception\SuiteConfigurationException; |
| 20 | 20 | use Behat\Testwork\Suite\Suite; |
| 21 | -use Sylius\Behat\Extension\MultiContainerExtension\Context\Environment\UninitializedContextServiceEnvironment; |
|
| 22 | 21 | use Sylius\Behat\Extension\MultiContainerExtension\ContextRegistry; |
| 22 | +use Sylius\Behat\Extension\MultiContainerExtension\Context\Environment\UninitializedContextServiceEnvironment; |
|
| 23 | 23 | use Symfony\Component\DependencyInjection\ContainerInterface; |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | - * @return array[] |
|
| 80 | + * @return integer[] |
|
| 81 | 81 | */ |
| 82 | 82 | public function getContextsServicesIds() |
| 83 | 83 | { |