Upgrade tests to PhpUnit 10 (#5252)
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
namespace App\Tests\Controller\Reporting;
|
||||
|
||||
use App\Entity\User;
|
||||
use App\Tests\Controller\ControllerBaseTest;
|
||||
use App\Tests\Controller\AbstractControllerBaseTestCase;
|
||||
use App\Tests\DataFixtures\ActivityFixtures;
|
||||
use App\Tests\DataFixtures\CustomerFixtures;
|
||||
use App\Tests\DataFixtures\ProjectFixtures;
|
||||
@@ -20,7 +20,7 @@ use Symfony\Component\HttpFoundation\BinaryFileResponse;
|
||||
/**
|
||||
* @group integration
|
||||
*/
|
||||
class ProjectViewControllerTest extends ControllerBaseTest
|
||||
class ProjectViewControllerTest extends AbstractControllerBaseTestCase
|
||||
{
|
||||
public function testReportIsSecure(): void
|
||||
{
|
||||
@@ -87,7 +87,7 @@ class ProjectViewControllerTest extends ControllerBaseTest
|
||||
|
||||
$this->assertAccessIsGranted($client, '/reporting/project_view/export');
|
||||
$response = $client->getResponse();
|
||||
$this->assertTrue($response->isSuccessful());
|
||||
self::assertTrue($response->isSuccessful());
|
||||
self::assertInstanceOf(BinaryFileResponse::class, $response);
|
||||
self::assertNotNull($response->headers->get('Content-Type'));
|
||||
self::assertEquals('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', $response->headers->get('Content-Type'));
|
||||
|
||||
Reference in New Issue
Block a user