diff --git a/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php b/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php index 4fa74e76b..d5aaf90a8 100644 --- a/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php +++ b/src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php @@ -49,9 +49,9 @@ public function testNew(): void ]); - self::assertResponseRedirects('/sweet/food/'); + self::assertResponseRedirects($this->path); - self::assertSame(1, $this->getRepository()->count([])); + self::assertSame(1, $this->repository->count([])); } public function testShow(): void @@ -109,7 +109,7 @@ public function testRemove(): void $fixture->set('Value'); - $this->manager->remove($fixture); + $this->manager->persist($fixture); $this->manager->flush(); $this->client->request('GET', sprintf('%s%s', $this->path, $fixture->getId()));