[Behat] Update context to pass validation

This commit is contained in:
Rafikooo 2023-03-02 20:44:56 +01:00
parent 3a519e8692
commit d40ecdffc0
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B
3 changed files with 4 additions and 5 deletions

View file

@ -502,7 +502,7 @@ final class ManagingProductVariantsContext implements Context
{
Assert::same(
$this->generatePage->getPricesValidationMessage($position - 1),
'You must define price for every channel.',
'You must define price for every enabled channel.',
);
}
@ -524,7 +524,7 @@ final class ManagingProductVariantsContext implements Context
{
Assert::contains(
$this->createPage->getPricesValidationMessage(),
'You must define price for every channel.',
'You must define price for every enabled channel.',
);
}

View file

@ -939,7 +939,7 @@ final class ManagingProductsContext implements Context
{
Assert::same(
$this->createSimpleProductPage->getChannelPricingValidationMessage(),
'You must define price for every channel.',
'You must define price for every enabled channel.',
);
}

View file

@ -26,8 +26,7 @@ final class DeleteOrderItemAction
public function __construct(
private MessageBusInterface $commandBus,
private OrderItemRepositoryInterface $orderItemRepository,
)
{
) {
}
public function __invoke(Request $request): Response