fix: stop offering unbookable services in the booking edit flow
This commit is contained in:
@@ -16,6 +16,7 @@ use App\Repository\BookingEditDraftRepository;
|
||||
use App\Service\BookingChangeTracker;
|
||||
use App\Service\BookingEditDraftManager;
|
||||
use App\Service\BookingEditDraftMerger;
|
||||
use App\Service\ServiceAvailabilityCalculator;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Psr\Log\NullLogger;
|
||||
@@ -37,7 +38,7 @@ class BookingEditDraftManagerMutabilityTest extends TestCase
|
||||
$this->createStub(BookingEditDraftRepository::class),
|
||||
$this->createStub(EntityManagerInterface::class),
|
||||
$this->createStub(BookingChangeTracker::class),
|
||||
new BookingEditDraftMerger(),
|
||||
new BookingEditDraftMerger(new ServiceAvailabilityCalculator()),
|
||||
new NullLogger(),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user