CreateRecord expects a create() instead of save()

This commit is contained in:
Patrick Hesselberg
2024-03-11 11:01:55 +01:00
committed by GitHub
parent 72e07ea7c6
commit 07b5a326f0
+2 -2
View File
@@ -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();
```