10000 bug #1468 fixed issues with CRUD test Controller generation · symfony/maker-bundle@2584cf7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2584cf7

Browse files
bug #1468 fixed issues with CRUD test Controller generation
1 parent 6691a56 commit 2584cf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Resources/skeleton/crud/test/Test.EntityManager.tpl.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public function testNew(): void
4949
<?php endforeach; ?>
5050
]);
5151

52-
self::assertResponseRedirects('/sweet/food/');
52+
self::assertResponseRedirects($this->path);
5353

54-
self::assertSame(1, $this->getRepository()->count([]));
54+
self::assertSame(1, $this->repository->count([]));
5555
}
5656

5757
public function testShow(): void
@@ -109,7 +109,7 @@ public function testRemove(): void
109109
$fixture->set<?= ucfirst($form_field); ?>('Value');
110110
<?php endforeach; ?>
111111

112-
$this->manager->remove($fixture);
112+
$this->manager->persist($fixture);
113113
$this->manager->flush();
114114

115115
$this->client->request('GET', sprintf('%s%s', $this->path, $fixture->getId()));

0 commit comments

Comments
 (0)
0