You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature: api/security
In order to fully or partially access the api
I need to have the good rights
Scenario: API as anonymous
Given I am on "/api/user"
And the response status code should be 401
And the response should contain json:
"""
{
"error" : "invalid_grant",
"error_description" : "No API key given."
}
"""
Result:
$ behat features/api/security.feature
Feature: api/security
In order to fully or partially access the api
I need to have the good rights
Scenario: API as anonymous # features/api/security.feature:5
Given I am on "/api/user"# FeatureContext::visit()
And the response status code should be 401 # FeatureContext::assertResponseStatus()
PHP Fatal error: Call to a member functionjson() on null in project/vendor/behat/web-api-extension/src/Context/WebApiContext.php on line 244
[...]
Is that an issue or a misconfiguration?
Thanks.
The text was updated successfully, but these errors were encountered:
Behat config:
Behat feature:
Result:
Is that an issue or a misconfiguration?
Thanks.
The text was updated successfully, but these errors were encountered: