What do I need to test if they currently have no methods or their own?
Nothing. Full Coverage does not mean your application is well tested; (apparent) lack of coverage doesn't mean is is not well tested.
Hey peeps.
I'm mucking about with an experimental project to do with multiple user types. I've taken the approach of using a base User that extends Illuminate\Foundation\Auth\User and a polymorphic relationship to other plain models. The question isn't about that though.
I'm using Pest to do my testing (check it out at https://pestphp.com) and I've just installed XDEBUG 2.0 to show my test coverage, Currently the percentage for all my user type models is zero. So, my question is, how do I test these models for total coverage? What do I need to test if they currently have no methods or their own?
What do I need to test if they currently have no methods or their own?
Nothing. Full Coverage does not mean your application is well tested; (apparent) lack of coverage doesn't mean is is not well tested.
Please or to participate in this conversation.