Skip to content
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

Unable to do functional tests with PHPUnit since upgrading to new auth system #432

Open
mike240se opened this issue Feb 14, 2024 · 0 comments

Comments

@mike240se
Copy link

mike240se commented Feb 14, 2024

I recently upgraded both the bundle and sf to 6.4, in the process I had to get rid of the guard system and switch to the new authentication system which works fine.

However, my webtestcases no longer work and throw errors of
"ErrorException: No route found for "GET https://login.microsoftonline.com/tenantID/oauth2/authorize" (from "http://localhost/login") in /app/vendor/symfony/http-kernel/EventListener/RouterListener.php:127"

I have switched over to the new ->login() method for logging in a user in a webtestcase, but still throws this error. Not really sure if this is a config error, a bug or an issue with my test code.

I ASSUME the issue is the user is not being logged with $this->client->loginUser($user); and that is triggering oauth in the test but I am not certain. I couldnt find any docs on how to test with this bundle, does anyone have any examples they can share?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant