This commit is contained in:
2021-12-25 22:51:58 +01:00
parent 11824adda4
commit 5cebcfddb7
19 changed files with 31 additions and 25 deletions

View File

@@ -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);