From 07b5a326f0accdafe400b059e45a6bc57ccd988d Mon Sep 17 00:00:00 2001 From: Patrick Hesselberg Date: Mon, 11 Mar 2024 11:01:55 +0100 Subject: [PATCH] CreateRecord expects a `create()` instead of `save()` --- packages/forms/docs/09-testing.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/forms/docs/09-testing.md b/packages/forms/docs/09-testing.md index fd880ab54d..94c77f431f 100644 --- a/packages/forms/docs/09-testing.md +++ b/packages/forms/docs/09-testing.md @@ -57,7 +57,7 @@ it('can validate input', function () { ->fillForm([ 'title' => null, ]) - ->call('save') + ->call('create') ->assertHasFormErrors(['title' => 'required']); }); ``` @@ -72,7 +72,7 @@ livewire(CreatePost::class) 'title' => fake()->sentence(), // ... ]) - ->call('save') + ->call('create') ->assertHasNoFormErrors(); ```