Skip to content

Add an API endpoint test #264

Description

@Azoorb

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions