diff --git a/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php b/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php index 19da87b79..c00804e0b 100644 --- a/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php @@ -37,7 +37,6 @@ class NotificationMailerTest extends TestCase */ public function testPostPersistComment(): void { - $this->expectNotToPerformAssertions(); $user1 = (new User())->setEmail('user1@foo.com'); $user2 = (new User())->setEmail('user2@foo.com'); $user3 = (new User())->setEmail('user3@foo.com'); @@ -67,7 +66,7 @@ class NotificationMailerTest extends TestCase } return false; - })); + }))->shouldBeCalledTimes(2); $objectManager = $this->prophesize(EntityManagerInterface::class); @@ -77,7 +76,6 @@ class NotificationMailerTest extends TestCase public function testPostPersistCommentDestWithNullEmail(): void { - $this->expectNotToPerformAssertions(); $user1 = (new User())->setEmail('user1@foo.com'); $user2 = (new User())->setEmail('user2@foo.com'); $user3 = (new User())->setEmail(null); @@ -107,7 +105,7 @@ class NotificationMailerTest extends TestCase } return false; - })); + }))->shouldBeCalledTimes(1); $objectManager = $this->prophesize(EntityManagerInterface::class);