```
✨ feat(revervation): [Ajoute la création de session de réservation et le flow] 🐛 fix(PurgeCommandTest): [Utilise addCommand au lieu de add pour les commandes] 📝 chore(deps): [Mise à jour des dépendances Composer et corrections] 🐛 fix(KeycloakAuthenticator): [Corrige le type nullable de l'exception start] ✨ feat(Customer): [Ajoute les sessions de commandes aux entités Customer] ♻️ refactor(AppLogger): [Refactorise l'AppLogger pour obtenir l'UserAgent] ✨ feat(FlowReserve): [Ajoute une action de validation du panier] ```
This commit is contained in:
@@ -13,12 +13,14 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Doctrine\ORM\Query;
|
||||
use Doctrine\ORM\QueryBuilder;
|
||||
use PHPUnit\Framework\Attributes\AllowMockObjectsWithoutExpectations;
|
||||
use PHPUnit\Framework\MockObject\MockObject;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\Console\Application;
|
||||
use Symfony\Component\Console\Tester\CommandTester;
|
||||
use Symfony\Component\HttpKernel\KernelInterface;
|
||||
|
||||
#[AllowMockObjectsWithoutExpectations]
|
||||
class MailCommandTest extends TestCase
|
||||
{
|
||||
private MockObject&KernelInterface $kernel;
|
||||
@@ -85,7 +87,7 @@ class MailCommandTest extends TestCase
|
||||
$this->entityManager
|
||||
);
|
||||
$application = new Application();
|
||||
$application->add($command);
|
||||
$application->addCommand($command);
|
||||
$commandTester = new CommandTester($application->find('app:mail'));
|
||||
|
||||
$commandTester->execute([]);
|
||||
@@ -139,7 +141,7 @@ class MailCommandTest extends TestCase
|
||||
$this->entityManager
|
||||
);
|
||||
$application = new Application();
|
||||
$application->add($command);
|
||||
$application->addCommand($command);
|
||||
$commandTester = new CommandTester($application->find('app:mail'));
|
||||
|
||||
$commandTester->execute([]);
|
||||
|
||||
Reference in New Issue
Block a user