30 lines
645 B
PHP
30 lines
645 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use Illuminate\Foundation\Testing\RefreshDatabase;
|
|
use Tests\TestCase;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
use RefreshDatabase;
|
|
|
|
/**
|
|
* Ensure the public home route renders successfully.
|
|
*/
|
|
public function test_home_route_returns_successful_response(): void
|
|
{
|
|
$this->get(route('home'))
|
|
->assertOk()
|
|
->assertSee('Laravel', false);
|
|
}
|
|
|
|
/**
|
|
* Ensure the health endpoint is available for deployment checks.
|
|
*/
|
|
public function test_health_endpoint_returns_successful_response(): void
|
|
{
|
|
$this->get('/up')->assertOk();
|
|
}
|
|
}
|