first commit
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-09-28 13:52:25 +07:00
commit 566275348c
262 changed files with 37008 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace Tests\Feature;
use Inertia\Testing\AssertableInertia as Assert;
use PHPUnit\Framework\Attributes\DataProvider;
use Tests\TestCase;
class SitePagesTest extends TestCase
{
/**
* @return array<string, array{string, string}>
*/
public static function pages(): array
{
return [
'home' => ['home', 'site/home'],
'about' => ['about', 'site/about'],
'services' => ['services', 'site/services'],
'clients' => ['clients', 'site/clients'],
'contact' => ['contact', 'site/contact'],
];
}
#[DataProvider('pages')]
public function test_public_page_renders_its_component(string $route, string $component)
{
$this->get(route($route))
->assertOk()
->assertInertia(fn (Assert $page) => $page->component($component));
}
}