#[Test]
public function title_is_required()
{
Livewire::test(CreatePost::class)
->set('title', '')
->call('save')
// It checks if the validation rule 'required' is triggered for the 'title' empty string field after the form submission.
->assertHasErrors(['title' => 'required'])
// It checks if the validation rule 'min:4' is triggered for the empty 'title' field after the form submission.
->assertHasErrors(['title' => 'min:4']);
}