Created NotifyVisitToRabbitTest

This commit is contained in:
Alejandro Celaya
2021-12-11 22:18:46 +01:00
parent 0bcefda60d
commit cb1705b6e8
4 changed files with 180 additions and 4 deletions

View File

@@ -38,9 +38,8 @@ class NotifyVisitToRabbit
}
$visitId = $shortUrlLocated->visitId();
/** @var Visit|null $visit */
$visit = $this->em->find(Visit::class, $visitId);
if ($visit === null) {
$this->logger->warning('Tried to notify RabbitMQ for visit with id "{visitId}", but it does not exist.', [
'visitId' => $visitId,