Skip to content

Commit

Permalink
add test file
Browse files Browse the repository at this point in the history
  • Loading branch information
emilschn committed Nov 17, 2023
1 parent 34c44ef commit 1e4542d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use App\Entity\Territory;
use App\EventListener\SuiviCreatedListener;
use App\Manager\AffectationManager;
use App\Manager\FileManager;
use App\Manager\SignalementManager;
use App\Manager\SuiviManager;
use App\Manager\TagManager;
Expand Down Expand Up @@ -32,6 +33,7 @@ class SignalementImportLoaderTest extends KernelTestCase
private LoggerInterface $logger;
private CriticiteCalculator $criticiteCalculator;
private SignalementQualificationUpdater $signalementQualificationUpdater;
private FileManager $fileManager;

protected function setUp(): void
{
Expand All @@ -45,6 +47,7 @@ protected function setUp(): void
$this->logger = self::getContainer()->get(LoggerInterface::class);
$this->criticiteCalculator = self::getContainer()->get(CriticiteCalculator::class);
$this->signalementQualificationUpdater = self::getContainer()->get(SignalementQualificationUpdater::class);
$this->fileManager = self::getContainer()->get(FileManager::class);

$this->entityManager = $kernel->getContainer()->get('doctrine')->getManager();
}
Expand All @@ -66,6 +69,7 @@ public function testLoadSignalementImport()
$this->logger,
$this->criticiteCalculator,
$this->signalementQualificationUpdater,
$this->fileManager,
);

$territory = $this->entityManager->getRepository(Territory::class)->findOneBy(['zip' => '01']);
Expand Down

0 comments on commit 1e4542d

Please sign in to comment.