feat: include accommodation bookings in db anonymization

This commit is contained in:
2026-09-08 15:41:28 +02:00
parent 8443dae5ad
commit cfe901b9c2
4 changed files with 142 additions and 12 deletions
+2 -1
View File
@@ -35,6 +35,7 @@ class DbAnonymizeCommandTest extends TestCase
'newsletterConsents' => 2,
'newsletterOptInRequests' => 3,
'bookingEditDrafts' => 4,
'accommodationBookings' => 5,
]);
$tester = new CommandTester($this->createCommand($anonymizer, 'dev'));
@@ -42,7 +43,7 @@ class DbAnonymizeCommandTest extends TestCase
self::assertSame(Command::SUCCESS, $tester->getStatusCode());
self::assertStringContainsString(
'Anonymized 1 users, 2 newsletter consents, 3 newsletter opt-in requests, and 4 booking drafts.',
'Anonymized 1 users, 2 newsletter consents, 3 newsletter opt-in requests, 4 booking drafts, and 5 accommodation bookings.',
$this->normalizeConsoleOutput($tester->getDisplay()),
);
}