mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Fix CI
This commit is contained in:
parent
48a4bdf9a6
commit
2a77873fdc
4 changed files with 13 additions and 28 deletions
|
|
@ -477,7 +477,6 @@ final class CheckoutContext implements Context
|
|||
* @Given I completed the payment step with :paymentMethod payment method
|
||||
* @When I choose :paymentMethod payment method
|
||||
* @When I select :paymentMethod payment method
|
||||
* @When I proceed selecting :paymentMethod payment method
|
||||
* @When /^the (?:customer|visitor) proceed with ("[^"]+" payment)$/
|
||||
* @Given /^the (?:customer|visitor) has proceeded ("[^"]+" payment)$/
|
||||
* @When I try to change payment method to :paymentMethod payment
|
||||
|
|
@ -498,17 +497,6 @@ final class CheckoutContext implements Context
|
|||
$this->client->executeCustomRequest($request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When I have proceeded selecting :paymentMethod payment method
|
||||
* @When I proceed selecting :paymentMethod payment method
|
||||
*/
|
||||
public function iHaveProceededSelectingOfflinePaymentMethod(PaymentMethodInterface $paymentMethod): void
|
||||
{
|
||||
$this->iCompleteTheAddressingStep();
|
||||
$this->iCompleteTheShippingStepWithFirstShippingMethod();
|
||||
$this->iChoosePaymentMethod($paymentMethod);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When I proceed through checkout process
|
||||
* @When I proceeded through checkout process
|
||||
|
|
@ -525,6 +513,7 @@ final class CheckoutContext implements Context
|
|||
}
|
||||
|
||||
/**
|
||||
* @When I proceed selecting :paymentMethod payment method
|
||||
* @When I have proceeded selecting :paymentMethod payment method
|
||||
*/
|
||||
public function iHaveProceededSelectingPaymentMethod(PaymentMethodInterface $paymentMethod): void
|
||||
|
|
|
|||
|
|
@ -62,7 +62,6 @@ final class ProductContext implements Context
|
|||
private ProductVariantGeneratorInterface $productVariantGenerator,
|
||||
private ProductVariantRepositoryInterface $productVariantRepository,
|
||||
private ProductVariantResolverInterface $defaultVariantResolver,
|
||||
private ProductVariantRepositoryInterface $productVariantRepository,
|
||||
private ImageUploaderInterface $imageUploader,
|
||||
private SlugGeneratorInterface $slugGenerator,
|
||||
private \ArrayAccess $minkParameters,
|
||||
|
|
|
|||
|
|
@ -155,7 +155,6 @@
|
|||
<argument type="service" id="sylius.generator.product_variant" />
|
||||
<argument type="service" id="sylius.repository.product_variant" />
|
||||
<argument type="service" id="sylius.product_variant_resolver.default" />
|
||||
<argument type="service" id="sylius.repository.product_variant" />
|
||||
<argument type="service" id="sylius.image_uploader" />
|
||||
<argument type="service" id="sylius.generator.slug" />
|
||||
<argument type="service" id="behat.mink.parameters" />
|
||||
|
|
|
|||
|
|
@ -44,12 +44,12 @@ final class CompleteOrderHandlerSpec extends ObjectBehavior
|
|||
|
||||
function it_handles_order_completion_without_notes(
|
||||
OrderRepositoryInterface $orderRepository,
|
||||
StateMachineInterface $stateMachine,
|
||||
OrderInterface $order,
|
||||
FactoryInterface $stateMachineFactory,
|
||||
MessageBusInterface $eventBus,
|
||||
CustomerInterface $customer,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
StateMachineInterface $stateMachine,
|
||||
OrderInterface $order,
|
||||
CustomerInterface $customer,
|
||||
): void {
|
||||
$completeOrder = new CompleteOrder();
|
||||
$completeOrder->setOrderTokenValue('ORDERTOKEN');
|
||||
|
|
@ -82,12 +82,12 @@ final class CompleteOrderHandlerSpec extends ObjectBehavior
|
|||
|
||||
function it_handles_order_completion_with_notes(
|
||||
OrderRepositoryInterface $orderRepository,
|
||||
StateMachineInterface $stateMachine,
|
||||
OrderInterface $order,
|
||||
FactoryInterface $stateMachineFactory,
|
||||
MessageBusInterface $eventBus,
|
||||
CustomerInterface $customer,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
StateMachineInterface $stateMachine,
|
||||
OrderInterface $order,
|
||||
CustomerInterface $customer,
|
||||
): void {
|
||||
$completeOrder = new CompleteOrder('ThankYou');
|
||||
$completeOrder->setOrderTokenValue('ORDERTOKEN');
|
||||
|
|
@ -120,11 +120,11 @@ final class CompleteOrderHandlerSpec extends ObjectBehavior
|
|||
|
||||
function it_delays_an_information_about_cart_recalculate(
|
||||
OrderRepositoryInterface $orderRepository,
|
||||
OrderInterface $order,
|
||||
MessageBusInterface $commandBus,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
OrderInterface $order,
|
||||
CustomerInterface $customer,
|
||||
PromotionInterface $promotion,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
): void {
|
||||
$completeOrder = new CompleteOrder('ThankYou');
|
||||
$completeOrder->setOrderTokenValue('ORDERTOKEN');
|
||||
|
|
@ -166,11 +166,9 @@ final class CompleteOrderHandlerSpec extends ObjectBehavior
|
|||
|
||||
function it_throws_an_exception_if_order_total_has_changed(
|
||||
OrderRepositoryInterface $orderRepository,
|
||||
StateMachineInterface $stateMachine,
|
||||
OrderInterface $order,
|
||||
FactoryInterface $stateMachineFactory,
|
||||
CustomerInterface $customer,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
OrderInterface $order,
|
||||
CustomerInterface $customer,
|
||||
): void {
|
||||
$completeOrder = new CompleteOrder();
|
||||
$completeOrder->setOrderTokenValue('ORDERTOKEN');
|
||||
|
|
@ -190,11 +188,11 @@ final class CompleteOrderHandlerSpec extends ObjectBehavior
|
|||
|
||||
function it_throws_an_exception_if_order_cannot_be_completed(
|
||||
OrderRepositoryInterface $orderRepository,
|
||||
FactoryInterface $stateMachineFactory,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
StateMachineInterface $stateMachine,
|
||||
OrderInterface $order,
|
||||
FactoryInterface $stateMachineFactory,
|
||||
CustomerInterface $customer,
|
||||
OrderPromotionsIntegrityCheckerInterface $orderPromotionsIntegrityChecker,
|
||||
): void {
|
||||
$completeOrder = new CompleteOrder();
|
||||
$completeOrder->setOrderTokenValue('ORDERTOKEN');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue