mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
fix cs ?
This commit is contained in:
@@ -388,7 +388,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
|
||||
public function testGetAggregatorNonExistant()
|
||||
{
|
||||
$this->expectException(\RuntimeException::class);
|
||||
$this->expectException(RuntimeException::class);
|
||||
|
||||
$exportManager = $this->createExportManager();
|
||||
|
||||
@@ -446,7 +446,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
|
||||
public function testGetExportNonExistant()
|
||||
{
|
||||
$this->expectException(\RuntimeException::class);
|
||||
$this->expectException(RuntimeException::class);
|
||||
|
||||
$exportManager = $this->createExportManager();
|
||||
|
||||
@@ -485,7 +485,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
|
||||
public function testGetFilterNonExistant()
|
||||
{
|
||||
$this->expectException(\RuntimeException::class);
|
||||
$this->expectException(RuntimeException::class);
|
||||
|
||||
$exportManager = $this->createExportManager();
|
||||
|
||||
@@ -646,7 +646,7 @@ final class ExportManagerTest extends KernelTestCase
|
||||
|
||||
public function testNonExistingFormatter()
|
||||
{
|
||||
$this->expectException(\RuntimeException::class);
|
||||
$this->expectException(RuntimeException::class);
|
||||
|
||||
$exportManager = $this->createExportManager();
|
||||
|
||||
@@ -668,10 +668,10 @@ final class ExportManagerTest extends KernelTestCase
|
||||
?UserInterface $user = null
|
||||
): ExportManager {
|
||||
$localUser = $user ?? self::$container->get(
|
||||
'doctrine.orm.entity_manager'
|
||||
)
|
||||
->getRepository('ChillMainBundle:User')
|
||||
->findOneBy(['username' => 'center a_social']);
|
||||
'doctrine.orm.entity_manager'
|
||||
)
|
||||
->getRepository('ChillMainBundle:User')
|
||||
->findOneBy(['username' => 'center a_social']);
|
||||
$token = new UsernamePasswordToken($localUser, 'password', 'provider');
|
||||
$tokenStorage = new TokenStorage();
|
||||
$tokenStorage->setToken($token);
|
||||
|
@@ -16,6 +16,7 @@ use Chill\MainBundle\Security\PasswordRecover\TokenManager;
|
||||
use DateInterval;
|
||||
use DateTimeImmutable;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
@@ -57,7 +58,7 @@ final class TokenManagerTest extends KernelTestCase
|
||||
|
||||
public function testGenerateEmptyUsernameCanonical()
|
||||
{
|
||||
$this->expectException(\UnexpectedValueException::class);
|
||||
$this->expectException(UnexpectedValueException::class);
|
||||
|
||||
$tokenManager = $this->tokenManager;
|
||||
// set a username, but not a username canonical
|
||||
|
Reference in New Issue
Block a user