mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-28 09:34:59 +00:00
apply more cs rules for php-cs
This commit is contained in:
@@ -13,12 +13,12 @@ namespace Chill\PersonBundle\Tests\Validation;
|
||||
|
||||
use Chill\PersonBundle\Entity\Person;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Symfony\Component\Validator\ConstraintViolation;
|
||||
use Symfony\Component\Validator\ConstraintViolationInterface;
|
||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @coversNothing
|
||||
*/
|
||||
class PersonValidationTest extends KernelTestCase
|
||||
@@ -39,7 +39,7 @@ class PersonValidationTest extends KernelTestCase
|
||||
{
|
||||
$errors = self::$validator->validate($person);
|
||||
|
||||
$errorsFiltered = array_filter(iterator_to_array($errors), fn (ConstraintViolationInterface $e) => $path === $e->getPropertyPath() /*&& $code === $e->getCode()*/);
|
||||
$errorsFiltered = array_filter(iterator_to_array($errors), fn (ConstraintViolationInterface $e) => $path === $e->getPropertyPath() /* && $code === $e->getCode() */);
|
||||
|
||||
self::assertCount($expectedCountErrors, $errorsFiltered);
|
||||
}
|
||||
|
Reference in New Issue
Block a user