guillaumebriday / laravel-blog

Laravel 11.0 blog application with Hotwire, Horizon, Telescope, Sanctum, Breeze and Pusher
https://laravel-blog.guillaumebriday.fr
MIT License
1.75k stars 572 forks source link

Use class namespace instead of string in testing. #108

Closed khoinv closed 4 years ago

guillaumebriday commented 4 years ago

Thanks ! But what’s the benefit?

khoinv commented 4 years ago

I want to organize my project into two contexts likes account (all user-related logic) and blog context. When I do that, I switch the Post from Models/Post to Models/Blog/Post and I want to all testcases will pass without any fixing in these testcases.

guillaumebriday commented 4 years ago

Ok why not 👍