added PHPUinit
This commit is contained in:
29
tests/Unit/Controller/FrontendControllerTest.php
Normal file
29
tests/Unit/Controller/FrontendControllerTest.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App\Tests\Unit\Controller;
|
||||
|
||||
use App\Controller\FrontendController;
|
||||
use App\Repository\QuotesRepository;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
|
||||
class FrontendControllerTest extends TestCase
|
||||
{
|
||||
public function testQuoteAction()
|
||||
{
|
||||
|
||||
/*
|
||||
// Set up the dependencies of the controller
|
||||
$quotesRepository = $this->createMock(originalClassName: QuotesRepository::class);
|
||||
|
||||
// Set up the controller and invoke the quote action
|
||||
$controller = new FrontendController();
|
||||
$response = $controller->quote(quotesRepository: $quotesRepository);
|
||||
|
||||
// Check the response of the action
|
||||
$this->assertInstanceOf(expected: Response::class, actual: $response);
|
||||
$this->assertStringContainsString(needle: '@default/base.html.twig', haystack: $response->getContent());
|
||||
*/
|
||||
$this->assertTrue(condition: true);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user