Updated API test fixtures to include API keys with roles

This commit is contained in:
Alejandro Celaya
2021-01-10 08:40:18 +01:00
parent 380915948b
commit f827186c77
5 changed files with 57 additions and 19 deletions

View File

@@ -12,8 +12,11 @@ class DomainFixture extends AbstractFixture
{
public function load(ObjectManager $manager): void
{
$orphanDomain = new Domain('this_domain_is_detached.com');
$manager->persist($orphanDomain);
$domain = new Domain('example.com');
$manager->persist($domain);
$this->addReference('example_domain', $domain);
$manager->persist(new Domain('this_domain_is_detached.com'));
$manager->flush();
}
}