-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Application/Unit testing with Codeception problem. #68
Comments
I get the same where whenever I run artisan tail or try to push to a queue. I'm looking into this further. |
I'm pretty sure this is an issue with how verify registers the auth driver, I'll look into this later tonight and see about fixing it considering I am now having the same issue. |
Sorry guys, getting married this weekend, so verify hasn't been a priority Good luck fixing it, I'll merge anything in in the next few weeks :)
|
Thanks for the heads up. If I get a fix for it I'll link to my fork for now for people who need it asap. |
Just a heads up from what I've been able to uncover so far it appears to be an issue in the order you load your the service providers. Because Verify is not deferred, if you fire another service provider that isn't deferred that binds to the Auth facade /driver before Toddish you'll receive this error since upon boot Laravel does an array_walk over the providers and loads the NON deferred providers in the order they are listed. Please ensure that |
Hey, Should I set the provider to be deferred then? Would that solve this issue? |
Any updates on this? It'd be nice to get a fix in for v4. |
I've confirmed the the provider is the first after the default Laravel providers but no luck. Same error. Are there any other options? |
Found a way to bypass this error for now. Credit goes to a post from another auth provider forum that had the same issue. I've been able to successfully write some tests for phpunit, and soon will confirm it is working for Codeception. Within your auth.php file where you define the driver, enter this:
|
I'm trying to do the right thing by testing :) and using Codeception. But I'm getting an error stating that "Driver [verify] not supported." when attempting to do functional or unit testing.
Is there a way around this or am I stuck with doing acceptance testing? Wanted to see what others are doing.
Thanks!
The text was updated successfully, but these errors were encountered: