@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function testInsertNew{{ nomEntity }}() |
34 | 34 | { |
35 | - $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
|
35 | + $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
|
36 | 36 | ${{ nomEntity|lower }} = new \{{namespace}}\Entity\{{ nomEntity }}(); |
37 | 37 | $this->manager->insert(${{ nomEntity|lower }}); |
38 | 38 | $this->assertCount(2, $this->manager->findAll()); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | public function testUpdate{{ nomEntity }}() |
46 | 46 | { |
47 | 47 | $this->loadFixtureFiles(['{{namespaceBundle}}/Tests/DataFixtures/{{ nomEntity }}Manager/Default{{ nomEntity }}.yml',]); |
48 | - $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")]; |
|
48 | + $criteria = ['createdAt' => new \DateTime("2016-08-05 12:12:12")]; |
|
49 | 49 | ${{ nomEntity|lower }} = $this->manager->findOneBy($criteria); |
50 | 50 | |
51 | 51 | $this->manager->update(${{ nomEntity|lower }}); |