Open thybag opened 3 years ago
@thybag Is there a place for me to jump in and help?
Hi @Djuki, sure!
Re: Tests, it'd be great to have some basic ones setup for the controllers (Campaign/Image/Map/Entity/Blocks).
Laravel provides some nicer helpers for writing these https://laravel.com/docs/7.x/http-tests & https://laravel.com/docs/7.x/database-testing#resetting-the-database-after-each-test
As basic coverage I think it'd be nice to have a test for some of the basic policy/permissions stuff, ie.
Then the same for the sub controllers, but with added (If I hit campaign/1/entity/2/
and entity 2 instead belongs to campaign 2 do I get an error type stuff) if you have time.
Whatever you have time to do would be great though.
@thybag Thanks for the detailed answer. I will start on Monday by installing your app, and I will try to create HTTP tests. Then we can review and improve.