test: use KernelTestCase instead of ApiTestCase

This commit is contained in:
Maël Gangloff 2025-10-22 22:13:40 +02:00
parent 57952b3e33
commit 2d07dce1ae
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
extensions: mbstring, xml, intl, curl, iconv, pdo_pgsql, sodium, zip, http
- name: Cache Composer dependencies
@ -67,7 +67,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
- name: Run PHPStan
run: vendor/bin/phpstan analyse
@ -94,7 +94,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
- name: Run PHP-CS-Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff
@ -136,7 +136,7 @@ jobs:
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
extensions: mbstring, xml, intl, curl, iconv, pdo_pgsql, sodium, zip, http
- name: Prepare database

View File

@ -4,7 +4,6 @@ declare(strict_types=1);
namespace App\Tests\Entity;
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase;
use App\Entity\Domain;
use App\Entity\DomainEvent;
use App\Entity\DomainStatus;
@ -16,9 +15,10 @@ use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Exception\ORMException;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\DependsExternal;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Uid\UuidV4;
class DomainTest extends ApiTestCase
class DomainTest extends KernelTestCase
{
public function testIsRedemptionPeriod(): void
{