Livewire::actingAs($this->user)
->test(CreateTenancy::class)
->fillForm([
'starts_at' => now()->addDays(5)->toDateString(),
'ends_at' => now()->toDateString(),
])
->call('create')
->assertNotified(
Notification::make()
->danger()
->title('Date Error')
->body('Ends at date should be greater than the starts at date.')
->persistent()
);
Livewire::actingAs($this->user)
->test(CreateTenancy::class)
->fillForm([
'starts_at' => now()->addDays(5)->toDateString(),
'ends_at' => now()->toDateString(),
])
->call('create')
->assertNotified(
Notification::make()
->danger()
->title('Date Error')
->body('Ends at date should be greater than the starts at date.')
->persistent()
);