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

@@ -52,11 +52,11 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
$menu
->addChild(
$this->translator->trans('My notifications'),
['route' => 'chill_main_notification_show']
['route' => 'chill_main_notification_my']
)
->setExtras([
'order' => 600,
'icon' => 'envelope'
'icon' => 'envelope',
]);
$menu

View File

@@ -48,7 +48,7 @@ class AddressNormalizer implements ContextAwareNormalizerInterface, NormalizerAw
/**
* @param Address $address
* @param null|string $format
* @param string|null $format
*/
public function normalize($address, $format = null, array $context = [])
{

View File

@@ -22,7 +22,7 @@ class CollectionNormalizer implements NormalizerAwareInterface, NormalizerInterf
/**
* @param Collection $collection
* @param null|string $format
* @param string|null $format
*/
public function normalize($collection, $format = null, array $context = [])
{

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

View File

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

View File

@@ -13,4 +13,4 @@ services:
$translator: '@Symfony\Component\Translation\TranslatorInterface'
$routeParameters: '%chill_main.notifications%'
Chill\MainBundle\Notification\NotificationRenderer: ~
Chill\MainBundle\Notification\NotificationHandlerManager: ~

View File

@@ -351,3 +351,7 @@ By: Par
For: Pour
Created for: Créé pour
Created by: Créé par
notification:
Notify: Notifier
Notification create: Notification envoyée