#901 Ensured only domains in use are returned to lists

This commit is contained in:
Alejandro Celaya
2020-11-21 08:44:28 +01:00
parent bb6c5de697
commit 8d3ceaf462
3 changed files with 69 additions and 5 deletions

View File

@@ -0,0 +1,19 @@
<?php
declare(strict_types=1);
namespace ShlinkioApiTest\Shlink\Rest\Fixtures;
use Doctrine\Common\DataFixtures\AbstractFixture;
use Doctrine\Persistence\ObjectManager;
use Shlinkio\Shlink\Core\Entity\Domain;
class DomainFixture extends AbstractFixture
{
public function load(ObjectManager $manager): void
{
$orphanDomain = new Domain('this_domain_is_detached.com');
$manager->persist($orphanDomain);
$manager->flush();
}
}