mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
DX: embed test app inside bundle
This commit is contained in:
@@ -97,9 +97,9 @@ final class CalendarTypeTest extends TypeTestCase
|
||||
|
||||
$calendar = new Calendar();
|
||||
$calendar->setMainUser(new class () extends User {
|
||||
public function getId()
|
||||
public function getId(): ?int
|
||||
{
|
||||
return '1';
|
||||
return 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -42,6 +42,7 @@ class LoadRelationships extends Fixture implements DependentFixtureInterface
|
||||
|
||||
public function load(ObjectManager $manager): void
|
||||
{
|
||||
return;
|
||||
$existing = [];
|
||||
|
||||
for ($i = 0; 20 > $i; ++$i) {
|
||||
|
@@ -198,6 +198,8 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
return $picked;
|
||||
} else {
|
||||
$picked = $this->pickChoice($choices);
|
||||
|
||||
@@ -210,6 +212,8 @@ class LoadReports extends AbstractFixture implements ContainerAwareInterface, Or
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
return $picked;
|
||||
}
|
||||
|
||||
throw new \LogicException("should not happens");
|
||||
|
Reference in New Issue
Block a user