Testing resource CRUD using PHPUnit

Hello, I need to write tests as the title says for resource, the filament documentation on testing talks of Pest framework but I need to use PHPUnit, and it also says its easily adaptable to PHPUnit, but with no further instructions. Did anyone do this before, and if so, can someone point me in the right direction? I have no idea how to begin writing tests for filament framework. It will also require tests for attaching and detaching records for many to many, and other relationships, but I guess I will manage if I even get to start with this somehow.
1 Reply
LeandroFerreira
LeandroFerreira4mo ago
check out this link and try your first test to understand how it works... https://laravel.com/docs/11.x/testing
Laravel - The PHP Framework For Web Artisans
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Want results from more Discord servers?
Add your server