Files
oficial/app/tests/acceptance/HomeTest.php
Juan Pablo Vial 6617a92f5f Tests
2024-03-20 13:49:58 -03:00

23 lines
634 B
PHP

<?php
use PHPUnit\Framework;
class HomeTest extends Framework\TestCase
{
public function testLoadHome(): void
{
$client = new GuzzleHttp\Client(['base_uri' => 'http://proxy']);
$home = $client->get('');
$home = $home->getBody()->getContents();
$expected = [
'<!DOCTYPE html>',
'<title>Incoviba</title>',
'<img src="http://localhost:8080/assets/images/logo_cabezal.png" alt="logo" />',
'Bienvenid@ a Incoviba'
];
foreach ($expected as $segment) {
$this->assertStringContainsString($segment, $home);
}
}
}