Refactor booking system: Remove unused policies, packages, and related entities
- Removed package consumption flags and related properties from PriceQuote. - Eliminated unused domain event publishing for policies and waitlist in Schedule. - Cleaned up BookingEngineSeeder by removing package and policy related logic. - Updated SeedScenariosCommand to reflect removal of policies from output. - Dropped policy, package, treatment course, cancellation, waitlist, and domain event tables in migration. - Removed domain event assertions from tests related to resource blocking.
This commit is contained in:
@@ -510,12 +510,5 @@ class HoldAndBookTest extends ApiTestCase
|
||||
|
||||
self::assertSame(200, $this->responseCode(), json_encode($moved, JSON_UNESCAPED_UNICODE));
|
||||
self::assertSame($newStart, $moved['data']['starts_at']);
|
||||
|
||||
$event = $this->em->getRepository(\App\Shared\Event\Entity\DomainEventLog::class)
|
||||
->findOneBy(['name' => \App\Shared\Event\DomainEvents::APPOINTMENT_RESCHEDULED], ['id' => 'DESC']);
|
||||
|
||||
self::assertNotNull($event);
|
||||
self::assertSame($start, $event->getPayload()['previous_start']);
|
||||
self::assertSame($newStart, $event->getPayload()['new_start']);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user