21 lines
525 B
PHP
21 lines
525 B
PHP
![]() |
<?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());
|
||
|
}
|
||
|
}
|