Inertia利用下でfeatureテストを書く
はじめに こんにちは。 現在、Inertia利用下のプロジェクトでテストを書いてます。 書き方はそんな難しくないです。 本題 <?php namespace Tests\Feature; use Inertia\Testing\AssertableInertia; use Tests\TestCase; class ExampleControllerTest extends TestCase { public function test_invoke(): void { $this->get('example') ->assertInertia(static fn (AssertableIne…
2023/10/28 11:39