Skip to content

Commit a6423e3

Browse files
authored
[make:controller] replace repository method add by save (#1226)
1 parent e9ad359 commit a6423e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function testShow(): void
6262
$fixture->set<?= ucfirst($form_field); ?>('My Title');
6363
<?php endforeach; ?>
6464

65-
$this->repository->add($fixture, true);
65+
$this->repository->save($fixture, true);
6666

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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function testShow(): void
6060
$fixture->set<?= ucfirst($form_field); ?>('My Title');
6161
<?php endforeach; ?>
6262

63-
$this->repository->add($fixture, true);
63+
$this->repository->save($fixture, true);
6464

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

@@ -78,7 +78,7 @@ public function testEdit(): void
7878
$fixture->set<?= ucfirst($form_field); ?>('My Title');
7979
<?php endforeach; ?>
8080

81-
$this->repository->add($fixture, true);
81+
$this->repository->save($fixture, true);
8282

8383
$this->client->request('GET', sprintf('%s%s/edit', $this->path, $fixture->getId()));
8484

@@ -108,7 +108,7 @@ public function testRemove(): void
108108
$fixture->set<?= ucfirst($form_field); ?>('My Title');
109109
<?php endforeach; ?>
110110

111-
$this->repository->add($fixture, true);
111+
$this->repository->save($fixture, true);
112112

113113
self::assertSame($originalNumObjectsInRepository + 1, count($this->repository->findAll()));
114114

0 commit comments

Comments
 (0)