Tests Home
This commit is contained in:
21
app/tests/integration/HomeTest.php
Normal file
21
app/tests/integration/HomeTest.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace ProVM\Integration;
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
use GuzzleHttp\Client;
|
||||
|
||||
class HomeTest extends TestCase
|
||||
{
|
||||
protected Client $client;
|
||||
protected function setUp(): void
|
||||
{
|
||||
$this->client = new Client(['base_uri' => $_ENV['APP_URL']]);
|
||||
}
|
||||
|
||||
public function testLoad(): void
|
||||
{
|
||||
$response = $this->client->get('/');
|
||||
$this->assertEquals(200, $response->getStatusCode());
|
||||
$this->assertStringContainsString('Incoviba', $response->getBody()->getContents());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user