Files
Mangarr/tests/Feature/AbstractApiTestCase.php
ext.jeremy.guillot@maxicoffee.domains e3d380eadd feat: GetMangaList endpoint + tests + test db
2025-02-10 19:21:14 +01:00

26 lines
641 B
PHP

<?php
namespace App\Tests\Feature;
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
abstract class AbstractApiTestCase extends ApiTestCase
{
protected ?EntityManagerInterface $entityManager;
protected ?ContainerInterface $container;
protected function setUp(): void
{
parent::setUp();
$this->container = static::getContainer();
$this->entityManager = $this->container->get(EntityManagerInterface::class);
}
protected function tearDown(): void
{
parent::tearDown();
}
}