Skip to content

Commit d60c22e

Browse files
committed
Fix tests
1 parent 8017175 commit d60c22e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/AppBundle/Controller/BlogControllerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ public function testNewComment()
8585

8686
$this->assertSame(Response::HTTP_FOUND, $client->getResponse()->getStatusCode());
8787

88+
$client->getContainer()->get('doctrine')->getManager()->clear();
89+
8890
$post = $client->getContainer()->get('doctrine')->getRepository(Post::class)->find(1);
8991
// The first one is the most recent comment because of the automatic sorting
9092
// defined in the comments association of the Post entity

0 commit comments

Comments
 (0)