mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -27,14 +27,13 @@ use Symfony\Component\Translation\Translator;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
class NotificationMailerTest extends TestCase
|
||||
{
|
||||
use ProphecyTrait;
|
||||
|
||||
/**
|
||||
*/
|
||||
public function testPostPersistComment(): void
|
||||
{
|
||||
$user1 = (new User())->setEmail('user1@foo.com');
|
||||
@@ -50,7 +49,7 @@ class NotificationMailerTest extends TestCase
|
||||
;
|
||||
|
||||
$comment = (new NotificationComment())
|
||||
->setContent("foo bar baz")
|
||||
->setContent('foo bar baz')
|
||||
->setCreatedBy($user2)
|
||||
;
|
||||
$notification->addComment($comment);
|
||||
@@ -60,7 +59,7 @@ class NotificationMailerTest extends TestCase
|
||||
// a mail only to user1 and user3 should have been sent
|
||||
$mailer->send(Argument::that(function (Email $email) {
|
||||
foreach ($email->getTo() as $address) {
|
||||
if ($address->getAddress() === 'user1@foo.com' || $address->getAddress() === 'user3@foo.com') {
|
||||
if ('user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -89,7 +88,7 @@ class NotificationMailerTest extends TestCase
|
||||
;
|
||||
|
||||
$comment = (new NotificationComment())
|
||||
->setContent("foo bar baz")
|
||||
->setContent('foo bar baz')
|
||||
->setCreatedBy($user2)
|
||||
;
|
||||
$notification->addComment($comment);
|
||||
@@ -99,7 +98,7 @@ class NotificationMailerTest extends TestCase
|
||||
// a mail only to user1 and user3 should have been sent
|
||||
$mailer->send(Argument::that(function (Email $email) {
|
||||
foreach ($email->getTo() as $address) {
|
||||
if ($address->getAddress() === 'user1@foo.com') {
|
||||
if ('user1@foo.com' === $address->getAddress()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -122,7 +121,4 @@ class NotificationMailerTest extends TestCase
|
||||
new Translator('fr')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@@ -22,6 +22,7 @@ use Symfony\Component\HttpKernel\Event\TerminateEvent;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
final class PersistNotificationOnTerminateEventSubscriberTest extends TestCase
|
||||
|
Reference in New Issue
Block a user