How to test a simple resource CRUD functionality?
I read the documentation but I can't find any sample how to test the simple resource? In the docs all you need to is to call
CreatePost::class
from resource page but in the simple resource all you can see is a ManagePost::class
. How do I test it?
Below code is my test:
Solution:Jump to solution
Hi ! This is my code for testing simple resource : ```php
it('can create a new origin', function(){
$newData = AccountOrigin::factory()->make();
livewire(AccountOriginResource\Pages\ManageAccountOrigins::class)
->mountAction('create')...
3 Replies
Up
Solution
Hi ! This is my code for testing simple resource :
This is how I test modal actions on a relation page, which is similar to a simple (modal) resource :