From ba2d2e96d86185a282003b4f3e5c3049aa7ce886 Mon Sep 17 00:00:00 2001 From: Ehsan Mahmoodi Date: Fri, 27 Feb 2026 14:34:23 +0330 Subject: [PATCH] docs: replace deprecated assertFormExists with assertSchemaExists (#19365) * docs: replace deprecated assertFormExists with assertSchemaExists * Update assertSchemaExists usage in documentation Signed-off-by: Dan Harrin --------- Signed-off-by: Dan Harrin Co-authored-by: Dan Harrin --- docs/10-testing/04-testing-schemas.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/10-testing/04-testing-schemas.md b/docs/10-testing/04-testing-schemas.md index e88cdbc741..7f09af4802 100644 --- a/docs/10-testing/04-testing-schemas.md +++ b/docs/10-testing/04-testing-schemas.md @@ -103,18 +103,18 @@ livewire(CreatePost::class) ## Testing the existence of a form -To check that a Livewire component has a form, use `assertFormExists()`: +To check that a Livewire component has a form, use `assertSchemaExists('form')`: ```php use function Pest\Livewire\livewire; it('has a form', function () { livewire(CreatePost::class) - ->assertFormExists(); + ->assertSchemaExists('form'); }); ``` -> If you have multiple schemas on a Livewire component, you can pass the name of a specific form like `assertFormExists('createPostForm')`. +> If you have multiple schemas on a Livewire component, you can pass the name of a specific form like `assertSchemaExists('createPostForm')`. ## Testing the existence of form fields