File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed
Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 55namespace App \Tests ;
66
77use Doctrine \ORM \EntityManagerInterface ;
8- use ApiPlatform \Symfony \Bundle \Test \ApiTestCase as TestCase ;
98use ApiPlatform \Symfony \Bundle \Test \Client ;
9+ use Symfony \Bundle \FrameworkBundle \FrameworkBundle ;
1010use Symfony \Contracts \HttpClient \ResponseInterface ;
11+ use ApiPlatform \Symfony \Bundle \Test \ApiTestCase as TestCase ;
1112
1213abstract 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
Original file line number Diff line number Diff line change 11<?php
22
33use Symfony \Component \Dotenv \Dotenv ;
4+ use Symfony \Component \ErrorHandler \ErrorHandler ;
45
56require dirname (__DIR__ ).'/vendor/autoload.php ' ;
67
910} elseif (method_exists (Dotenv::class, 'bootEnv ' )) {
1011 (new Dotenv ())->bootEnv (dirname (__DIR__ ).'/.env ' );
1112}
13+
14+ ErrorHandler::register (null , false );
You can’t perform that action at this time.
0 commit comments