Skip to content

Commit 586502a

Browse files
committed
test
1 parent 88c8ca1 commit 586502a

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

api/phpunit.xml.dist

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,7 @@
2222
</testsuite>
2323
</testsuites>
2424

25-
<coverage processUncoveredFiles="true">
26-
<include>
27-
<directory suffix=".php">src</directory>
28-
</include>
29-
</coverage>
3025

31-
<listeners>
32-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" />
33-
</listeners>
3426

3527
<extensions>
3628
</extensions>

api/tests/ApiTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
namespace App\Tests;
66

77
use Doctrine\ORM\EntityManagerInterface;
8-
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase as TestCase;
98
use ApiPlatform\Symfony\Bundle\Test\Client;
9+
use Symfony\Bundle\FrameworkBundle\FrameworkBundle;
1010
use Symfony\Contracts\HttpClient\ResponseInterface;
11+
use ApiPlatform\Symfony\Bundle\Test\ApiTestCase as TestCase;
1112

1213
abstract class ApiTestCase extends TestCase
1314
{
@@ -41,8 +42,7 @@ protected function setUp(): void
4142
parent::setUp();
4243

4344
$this->client = static::createClient();
44-
// $this->client->disableReboot();
45-
45+
$this->client->disableReboot();
4646
}
4747

4848
protected function tearDown(): void

api/tests/bootstrap.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?php
22

33
use Symfony\Component\Dotenv\Dotenv;
4+
use Symfony\Component\ErrorHandler\ErrorHandler;
45

56
require dirname(__DIR__).'/vendor/autoload.php';
67

@@ -9,3 +10,5 @@
910
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
1011
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
1112
}
13+
14+
ErrorHandler::register(null, false);

0 commit comments

Comments
 (0)