mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
cs: Autofix.
This commit is contained in:
parent
f3f5cc550c
commit
cf588c97c0
@ -388,7 +388,7 @@ final class ExportManagerTest extends KernelTestCase
|
|||||||
|
|
||||||
public function testGetAggregatorNonExistant()
|
public function testGetAggregatorNonExistant()
|
||||||
{
|
{
|
||||||
$this->expectException(\RuntimeException::class);
|
$this->expectException(RuntimeException::class);
|
||||||
|
|
||||||
$exportManager = $this->createExportManager();
|
$exportManager = $this->createExportManager();
|
||||||
|
|
||||||
@ -446,7 +446,7 @@ final class ExportManagerTest extends KernelTestCase
|
|||||||
|
|
||||||
public function testGetExportNonExistant()
|
public function testGetExportNonExistant()
|
||||||
{
|
{
|
||||||
$this->expectException(\RuntimeException::class);
|
$this->expectException(RuntimeException::class);
|
||||||
|
|
||||||
$exportManager = $this->createExportManager();
|
$exportManager = $this->createExportManager();
|
||||||
|
|
||||||
@ -485,7 +485,7 @@ final class ExportManagerTest extends KernelTestCase
|
|||||||
|
|
||||||
public function testGetFilterNonExistant()
|
public function testGetFilterNonExistant()
|
||||||
{
|
{
|
||||||
$this->expectException(\RuntimeException::class);
|
$this->expectException(RuntimeException::class);
|
||||||
|
|
||||||
$exportManager = $this->createExportManager();
|
$exportManager = $this->createExportManager();
|
||||||
|
|
||||||
@ -646,7 +646,7 @@ final class ExportManagerTest extends KernelTestCase
|
|||||||
|
|
||||||
public function testNonExistingFormatter()
|
public function testNonExistingFormatter()
|
||||||
{
|
{
|
||||||
$this->expectException(\RuntimeException::class);
|
$this->expectException(RuntimeException::class);
|
||||||
|
|
||||||
$exportManager = $this->createExportManager();
|
$exportManager = $this->createExportManager();
|
||||||
|
|
||||||
@ -668,10 +668,10 @@ final class ExportManagerTest extends KernelTestCase
|
|||||||
?UserInterface $user = null
|
?UserInterface $user = null
|
||||||
): ExportManager {
|
): ExportManager {
|
||||||
$localUser = $user ?? self::$container->get(
|
$localUser = $user ?? self::$container->get(
|
||||||
'doctrine.orm.entity_manager'
|
'doctrine.orm.entity_manager'
|
||||||
)
|
)
|
||||||
->getRepository('ChillMainBundle:User')
|
->getRepository('ChillMainBundle:User')
|
||||||
->findOneBy(['username' => 'center a_social']);
|
->findOneBy(['username' => 'center a_social']);
|
||||||
$token = new UsernamePasswordToken($localUser, 'password', 'provider');
|
$token = new UsernamePasswordToken($localUser, 'password', 'provider');
|
||||||
$tokenStorage = new TokenStorage();
|
$tokenStorage = new TokenStorage();
|
||||||
$tokenStorage->setToken($token);
|
$tokenStorage->setToken($token);
|
||||||
|
@ -16,6 +16,7 @@ use Chill\MainBundle\Security\PasswordRecover\TokenManager;
|
|||||||
use DateInterval;
|
use DateInterval;
|
||||||
use DateTimeImmutable;
|
use DateTimeImmutable;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||||
|
use UnexpectedValueException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @internal
|
* @internal
|
||||||
@ -57,7 +58,7 @@ final class TokenManagerTest extends KernelTestCase
|
|||||||
|
|
||||||
public function testGenerateEmptyUsernameCanonical()
|
public function testGenerateEmptyUsernameCanonical()
|
||||||
{
|
{
|
||||||
$this->expectException(\UnexpectedValueException::class);
|
$this->expectException(UnexpectedValueException::class);
|
||||||
|
|
||||||
$tokenManager = $this->tokenManager;
|
$tokenManager = $this->tokenManager;
|
||||||
// set a username, but not a username canonical
|
// set a username, but not a username canonical
|
||||||
|
@ -12,6 +12,7 @@ declare(strict_types=1);
|
|||||||
namespace Chill\PersonBundle\Tests\Form\Type;
|
namespace Chill\PersonBundle\Tests\Form\Type;
|
||||||
|
|
||||||
use Chill\PersonBundle\Form\Type\PickPersonType;
|
use Chill\PersonBundle\Form\Type\PickPersonType;
|
||||||
|
use RuntimeException;
|
||||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||||
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
|
||||||
use function count;
|
use function count;
|
||||||
@ -52,7 +53,7 @@ final class PickPersonTypeTest extends KernelTestCase
|
|||||||
*/
|
*/
|
||||||
public function testWithInvalidOptionCenters()
|
public function testWithInvalidOptionCenters()
|
||||||
{
|
{
|
||||||
$this->expectException(\RuntimeException::class);
|
$this->expectException(RuntimeException::class);
|
||||||
|
|
||||||
$this->markTestSkipped('need to inject locale into url generator without request');
|
$this->markTestSkipped('need to inject locale into url generator without request');
|
||||||
$this->formFactory
|
$this->formFactory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user