-
Notifications
You must be signed in to change notification settings - Fork 194
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
REST API Endpoint testing response issue #419
Comments
I was able to get the rest of the tests to run by adding
at the top and reversing it at the bottom of the test
Still shows an error, but at least the other tests run
/web/app-v1/tests/_ci_phpunit_test/CIPHPUnitTestCase.php:180 Using this
I get this in cli (again other tests ran):
/web/app-v1/tests/_ci_phpunit_test/CIPHPUnitTestRequest.php:403 |
PHPUnit 9.6.22
ci-phpunit-test 3.0.4 via composer
php 7.4
Doc Reference
Problem: When I run this test
I get this response and no other tests run
PHPUnit 9.6.22 by Sebastian Bergmann and contributors.
Warning: No code coverage driver available
{
"status": "errors",
"code": "400",
"messages": [
"Authorization Header Missing"
]
}
It is like the response is not going to the variable but directly to stdout. The same thing happens when I include the --stderr switch in the cli call.
$this->request() calls to other controllers seem to be working fine.
I don't know if this is a ci-phpunit-test issue or something I am doing wrong. I don't understand why a request returning a JSON string returns different from returning an HTML page.
Any assistance is appreciated.
The text was updated successfully, but these errors were encountered: