refactor #16353 [CS][DX] Refactor ()

This PR was merged into the 1.13 branch.

Discussion
----------

This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).

Commits
-------

987bcb39f8 [CS][DX] Refactor
This commit is contained in:
Grzegorz Sadowski 2024-06-06 13:45:46 +02:00 committed by GitHub
commit 890eb2dc29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -22,7 +22,7 @@ use Sylius\Component\Inventory\Checker\AvailabilityCheckerInterface;
final class PaymentPreCompleteListener
{
public function __construct(
private OrderItemAvailabilityCheckerInterface|AvailabilityCheckerInterface $availabilityChecker,
private AvailabilityCheckerInterface|OrderItemAvailabilityCheckerInterface $availabilityChecker,
) {
}

View file

@ -74,6 +74,7 @@ final class PaymentPreCompleteListenerSpec extends ObjectBehavior
$this->checkStockAvailability($event);
}
function it_does_nothing_if_no_item_is_tracked_when_order_item_availability_checker_is_not_passed(
AvailabilityCheckerInterface $availabilityChecker,
ResourceControllerEvent $event,