added PHPUinit
This commit is contained in:
.env.test.gitignoreyarn.lock
assets
bin
composer.jsoncomposer.lockconfig
package.jsonphpunit.xml.distpublic/coverage
Command
Controller
Admin
DashboardController.php.htmlPagesCrudController.php.htmlProjectsCrudController.php.htmlQuotesCrudController.php.htmlUserCrudController.php.htmldashboard.htmlindex.html
BaseController.php.htmlFrontendController.php.htmlPagesController.php.htmlProjectsController.php.htmlSecurityController.php.htmlUserController.php.htmldashboard.htmlindex.htmlEntity
Pages.php.htmlProjects.php.htmlQuotes.php.htmlResetPasswordRequest.php.htmlUser.php.htmldashboard.htmlindex.html
EventSubscriber
Exception
Form
ChangePasswordFormType.php.htmlEditProfileFormType.php.htmlRegistrationFormType.php.htmlResetPasswordRequestFormType.php.htmldashboard.htmlindex.html
Kernel.php.htmlRepository
PagesRepository.php.htmlProjectsRepository.php.htmlQuotesRepository.php.htmlResetPasswordRequestRepository.php.htmlUserRepository.php.htmldashboard.htmlindex.html
Security
Twig
_css
_icons
_js
dashboard.htmlindex.htmlsrc/Command
symfony.locktests
Unit
bootstrap.php
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