feat: full anonymization of buspro xml dumps
This commit is contained in:
@@ -41,7 +41,10 @@ class DbAnonymizeCommandTest extends TestCase
|
||||
$tester->execute([]);
|
||||
|
||||
self::assertSame(Command::SUCCESS, $tester->getStatusCode());
|
||||
self::assertStringContainsString('Anonymized 1 users, 2 newsletter consents, 3 newsletter opt-in requests, and 4 booking drafts.', $tester->getDisplay());
|
||||
self::assertStringContainsString(
|
||||
'Anonymized 1 users, 2 newsletter consents, 3 newsletter opt-in requests, and 4 booking drafts.',
|
||||
$this->normalizeConsoleOutput($tester->getDisplay()),
|
||||
);
|
||||
}
|
||||
|
||||
private function createCommand(DatabaseAnonymizer $anonymizer, string $environment): DbAnonymizeCommand
|
||||
@@ -52,4 +55,9 @@ class DbAnonymizeCommandTest extends TestCase
|
||||
$environment,
|
||||
);
|
||||
}
|
||||
|
||||
private function normalizeConsoleOutput(string $output): string
|
||||
{
|
||||
return trim((string) preg_replace('/\s+/', ' ', $output));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user