Files
oficial/app/tests/integration/HomeTest.php

21 lines
525 B
PHP
Raw Normal View History

2025-04-29 21:42:57 -04:00
<?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());
}
}