© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
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);
});
image.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

testing uploads with Pest
FilamentFFilament / ❓┊help
3y ago
Sample of writing unit tests using Pest
FilamentFFilament / ❓┊help
3y ago
Filament v4 testing with Pest
FilamentFFilament / ❓┊help
5mo ago
Help Needed with Testing Tabs in Using Pest
FilamentFFilament / ❓┊help
2y ago