cs: Enable more risky rules.

This commit is contained in:
Pol Dellaiera
2021-11-30 11:37:57 +01:00
parent c8195e6df5
commit a9188355c5
193 changed files with 306 additions and 63 deletions

View File

@@ -18,7 +18,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
* @internal
* @coversNothing
*/
class ExportControllerTest extends KernelTestCase
class PointTest extends KernelTestCase
{
public function testFromArrayGeoJson()
{

View File

@@ -21,6 +21,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use Symfony\Component\Security\Core\Role\Role;
use function count;
/**
* Test the export manager.

View File

@@ -19,7 +19,7 @@ use Symfony\Component\Form\Test\TypeTestCase;
* @internal
* @coversNothing
*/
class CenterTypeTest extends TypeTestCase
class PickCenterTypeTest extends TypeTestCase
{
/**
* Test that a user which can reach multiple center

View File

@@ -12,6 +12,7 @@ namespace Chill\MainBundle\Tests\Pagination;
use Chill\MainBundle\Pagination\Paginator;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use function count;
/**
* Test the paginator class.

View File

@@ -23,6 +23,7 @@ use Chill\MainBundle\Test\ProphecyTrait;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Security\Core\Role\Role;
use function array_map;
use function in_array;
/**
* @internal

View File

@@ -20,7 +20,7 @@ use PHPUnit\Framework\TestCase;
* @internal
* @coversNothing
*/
class DefaultScopeResolverDispatcherTest extends TestCase
class ScopeResolverDispatcherTest extends TestCase
{
private ScopeResolverDispatcher $scopeResolverDispatcher;