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

How to write test authorization #190

Closed
prefect1 opened this issue Jul 5, 2017 · 2 comments
Closed

How to write test authorization #190

prefect1 opened this issue Jul 5, 2017 · 2 comments
Labels

Comments

@prefect1
Copy link

prefect1 commented Jul 5, 2017

Hello, faced with the problem of writing a test for user authorization. Example of authorization system: http://php.net/manual/en/features.http-auth.php. How to send the correct parameters to the header for authorization ??
PHPUnit 5.7.21 version
Ci3 3.1.5. version
ci_phpunit-test 0.14.0 version
php 5.6.30 version

@kenjis
Copy link
Owner

kenjis commented Jul 14, 2017

How about just setting $_SERVER['PHP_AUTH_USER'] in your test code?

@kenjis
Copy link
Owner

kenjis commented Oct 8, 2020

If you still have the problem, feel free to reopen or create an issue.

@kenjis kenjis closed this as completed Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants