protected function ApiProductAccessTest::messageIfUserShouldHaveAccessWithBypassPerm in Apigee Edge 8
Error message, when a user should have access because they have bypass perm.
Parameters
string $operation: Operation on API product.
\Drupal\user\UserInterface $user: User object.
Return value
string Error message.
1 call to ApiProductAccessTest::messageIfUserShouldHaveAccessWithBypassPerm()
- ApiProductAccessTest::entityAccessTest in tests/
src/ FunctionalJavascript/ ApiProductAccessTest.php - Tests "Access by visibility" access control.
File
- tests/
src/ FunctionalJavascript/ ApiProductAccessTest.php, line 469
Class
- ApiProductAccessTest
- Validates built-in access control on API products.
Namespace
Drupal\Tests\apigee_edge\FunctionalJavascriptCode
protected function messageIfUserShouldHaveAccessWithBypassPerm(string $operation, UserInterface $user) : string {
return "User with \"Bypass API Product access control\" permission should have \"{$operation}\" access to the API product.";
}