F
Filament3mo ago
Aminne

Add unit testing on ToggleColumn with using Pest

I have this code i want to update enable action in table by writing unit tests
it('can disabled loan limit', function() {
$loanLimit = LoanLimit::factory()->create(['status' => true]);

livewire(LoanLimitResource\Pages\ListLoanLimits::class)
->callTableColumnAction(ToggleColumn::class, $loanLimit);
});
it('can disabled loan limit', function() {
$loanLimit = LoanLimit::factory()->create(['status' => true]);

livewire(LoanLimitResource\Pages\ListLoanLimits::class)
->callTableColumnAction(ToggleColumn::class, $loanLimit);
});
No description
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server