Added test for DomainRedirectCommand

This commit is contained in:
Alejandro Celaya
2021-07-22 20:48:58 +02:00
parent 267d72a76c
commit 24a6a0c23f
20 changed files with 245 additions and 52 deletions

View File

@@ -67,7 +67,7 @@ class DomainService implements DomainServiceInterface
public function getOrCreate(string $authority): Domain
{
$domain = $this->findByAuthority($authority) ?? new Domain($authority);
$domain = $this->findByAuthority($authority) ?? Domain::withAuthority($authority);
$this->em->persist($domain);
$this->em->flush();