Set up testing
This commit is contained in:
parent
99b4ca1729
commit
98d85af67f
3 changed files with 2341 additions and 2323 deletions
4645
composer.lock
generated
4645
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -3,6 +3,6 @@
|
|||
<title>Test</title>
|
||||
</head>
|
||||
<body>
|
||||
Body Test
|
||||
<h1>Rater</h1>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
17
tests/Integration/Controller/IndexControllerTest.php
Normal file
17
tests/Integration/Controller/IndexControllerTest.php
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace App\Tests\Integration\Controller;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
|
||||
|
||||
class IndexControllerTest extends WebTestCase
|
||||
{
|
||||
public function testSomething(): void
|
||||
{
|
||||
$client = static::createClient();
|
||||
$crawler = $client->request('GET', '/');
|
||||
|
||||
$this->assertResponseIsSuccessful();
|
||||
$this->assertSelectorTextContains('h1', 'Rater');
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue