-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add ContactCrudControllerTest for index page validation
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* Copyright 2025 (C) IDMarinas - All Rights Reserved | ||
* | ||
* Last modified by "IDMarinas" on 27/01/2025, 20:55 | ||
* | ||
* @project IDMarinas Common Bundle | ||
* @see https://github.com/idmarinas/common-bundle | ||
* | ||
* @file ContactCrudControllerTest.php | ||
* @date 27/01/2025 | ||
* @time 18:45 | ||
* | ||
* @author Iván Diaz Marinas (IDMarinas) | ||
* @license BSD 3-Clause License | ||
* | ||
* @since 3.4.0 | ||
*/ | ||
|
||
namespace Idm\Bundle\Common\Tests\Controller\Admin; | ||
|
||
use App\Controller\Admin\ContactCrudController; | ||
use App\Controller\Admin\DashboardController; | ||
use EasyCorp\Bundle\EasyAdminBundle\Test\AbstractCrudTestCase; | ||
|
||
class ContactCrudControllerTest extends AbstractCrudTestCase | ||
{ | ||
public function testIndexPage () | ||
{ | ||
$this->client->request('GET', $this->generateIndexUrl()); | ||
|
||
$this->assertResponseIsSuccessful(); | ||
|
||
var_dump($this->client->getResponse()->getContent()); | ||
} | ||
|
||
protected function getControllerFqcn (): string | ||
{ | ||
return ContactCrudController::class; | ||
} | ||
|
||
protected function getDashboardFqcn (): string | ||
{ | ||
return DashboardController::class; | ||
} | ||
} |