stancl / tenancy-docs

stancl/tenancy docs & website
https://tenancyforlaravel.com/docs
MIT License
66 stars 636 forks source link

Add an API endpoint test #264

Open Azoorb opened 9 months ago

Azoorb commented 9 months ago

I find that there is a lack of a complete test example in the documentation, especially for testing an API endpoint.

Indeed, I am using multi-database tenancy with domain routing, and testing something like $this->get('/auth/login') is not straightforward because we cannot do $this->get('fakedomain.com/auth/login'), it result in a 404 response.

Perhaps adding an example in the documentation could make testing clearer. Thank you for this great package!