Sep 19, 2021
0
Level 2
Testing Custom User Provider
I have implemented custom user provider by extending the EloquentUserProvider and overridden theretrieveByCredentials and validateCredentials. This provider will call external API.
This implementation is working as expected.
Now comes testing time. I'm not sure how to mock the auth and return a prepared response.
I intend to use actingAs() too for HTTP test.
Please or to participate in this conversation.