mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -25,6 +25,7 @@ use Symfony\Component\HttpFoundation\Request;
|
||||
use function array_map;
|
||||
use function array_pop;
|
||||
use function array_rand;
|
||||
use function count;
|
||||
use function json_decode;
|
||||
use function json_encode;
|
||||
|
||||
|
@@ -19,6 +19,7 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||
use Iterator;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use function array_pop;
|
||||
use function count;
|
||||
use function preg_match;
|
||||
|
||||
/**
|
||||
|
@@ -15,6 +15,7 @@ use DateTime;
|
||||
use Doctrine\Common\Collections\Criteria;
|
||||
use LogicalException;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use function array_key_exists;
|
||||
|
||||
/**
|
||||
* Test the creation or deletion of accompanying periods.
|
||||
|
@@ -22,6 +22,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use function array_pop;
|
||||
use function count;
|
||||
use function json_decode;
|
||||
use function json_encode;
|
||||
use function random_int;
|
||||
|
@@ -14,6 +14,8 @@ use DateTime;
|
||||
use Symfony\Bundle\FrameworkBundle\KernelBrowser;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\DomCrawler\Form;
|
||||
use function count;
|
||||
use function in_array;
|
||||
|
||||
/**
|
||||
* Test creation and deletion for persons.
|
||||
|
@@ -16,7 +16,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
* @internal
|
||||
* @coversNothing
|
||||
*/
|
||||
class PersonControllerViewTestWithHiddenFields extends WebTestCase
|
||||
class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
{
|
||||
/**
|
||||
* @var \Doctrine\ORM\EntityManagerInterface The entity manager
|
||||
|
@@ -13,6 +13,7 @@ use Chill\MainBundle\Test\PrepareClientTrait;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use function array_pop;
|
||||
use function count;
|
||||
use function json_decode;
|
||||
|
||||
/**
|
||||
|
@@ -16,6 +16,7 @@ use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\ThirdPartyBundle\Entity\ThirdParty;
|
||||
use DateTime;
|
||||
use DateTimeInterface;
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
@@ -12,6 +12,7 @@ namespace Chill\PersonBundle\Tests\Form\Type;
|
||||
use Chill\PersonBundle\Form\Type\PickPersonType;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
|
@@ -16,6 +16,7 @@ use Chill\PersonBundle\Household\MembersEditorFactory;
|
||||
use DateTimeImmutable;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||
use function count;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@@ -91,7 +92,7 @@ class MembersEditorTest extends TestCase
|
||||
);
|
||||
|
||||
$persistables = $editor->getPersistable();
|
||||
$this->assertEquals(\count($persistables), 1);
|
||||
$this->assertEquals(count($persistables), 1);
|
||||
|
||||
$membership1 = $persistables[0];
|
||||
$this->assertSame($household1, $membership1->getHousehold());
|
||||
|
Reference in New Issue
Block a user