mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-30 19:36:40 +03:00
22 lines
563 B
PHP
22 lines
563 B
PHP
<?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
|
|
{
|
|
$domain = new Domain('example.com');
|
|
$manager->persist($domain);
|
|
$this->addReference('example_domain', $domain);
|
|
|
|
$manager->persist(new Domain('this_domain_is_detached.com'));
|
|
$manager->flush();
|
|
}
|
|
}
|