diff --git a/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php b/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php index 36003d7e4..031a8cb6e 100644 --- a/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php +++ b/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php @@ -9,16 +9,16 @@ { private KernelBrowser $client; private EntityManagerInterface $manager; - private EntityRepository $repository; + private EntityRepository $Repository; private string $path = '/'; protected function setUp(): void { $this->client = static::createClient(); $this->manager = static::getContainer()->get('doctrine')->getManager(); - $this->repository = $this->manager->getRepository(::class); + $this->Repository = $this->manager->getRepository(::class); - foreach ($this->repository->findAll() as $object) { + foreach ($this->Repository->findAll() as $object) { $this->manager->remove($object); } @@ -52,7 +52,7 @@ public function testNew(): void self::assertResponseRedirects($this->path); - self::assertSame(1, $this->repository->count([])); + self::assertSame(1, $this->Repository->count([])); } public function testShow(): void @@ -95,7 +95,7 @@ public function testEdit(): void self::assertResponseRedirects('/'); - $fixture = $this->repository->findAll(); + $fixture = $this->Repository->findAll(); $typeOptions): ?> self::assertSame('Something New', $fixture[0]->get()); @@ -117,6 +117,6 @@ public function testRemove(): void $this->client->submitForm('Delete'); self::assertResponseRedirects('/'); - self::assertSame(0, $this->repository->count([])); + self::assertSame(0, $this->Repository->count([])); } }