mirror of
https://github.com/filamentphp/filament.git
synced 2026-09-24 15:42:09 +08:00
CreateRecord expects a create() instead of save()
This commit is contained in:
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user