protected function ApiProductRoleBasedAccessTestBase::setUp in Apigee Edge 8
Overrides ApiProductAccessTest::setUp
3 calls to ApiProductRoleBasedAccessTestBase::setUp()
- ApiProductRoleBasedAccessAnonymousAuthenticatedTest::setUp in modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessAnonymousAuthenticatedTest.php - ApiProductRoleBasedAccessAnonymousInternalTest::setUp in modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessAnonymousInternalTest.php - ApiProductRoleBasedAccessAuthenticatedInternalTest::setUp in modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessAuthenticatedInternalTest.php
3 methods override ApiProductRoleBasedAccessTestBase::setUp()
- ApiProductRoleBasedAccessAnonymousAuthenticatedTest::setUp in modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessAnonymousAuthenticatedTest.php - ApiProductRoleBasedAccessAnonymousInternalTest::setUp in modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessAnonymousInternalTest.php - ApiProductRoleBasedAccessAuthenticatedInternalTest::setUp in modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessAuthenticatedInternalTest.php
File
- modules/
apigee_edge_apiproduct_rbac/ tests/ src/ FunctionalJavascript/ ApiProductRoleBasedAccessTestBase.php, line 56
Class
- ApiProductRoleBasedAccessTestBase
- Base calls for validating role based access control on API products.
Namespace
Drupal\Tests\apigee_edge_apiproduct_rbac\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
$this->users[self::USER_WITH_ADMIN_PERM] = $this
->createAccount([
'administer apigee edge',
]);
// Set built-in API product access control to "revoke all" mode to make sure
// that it is actually disabled by this module.
$this
->config('apigee_edge.api_product_settings')
->set('access', [
self::PUBLIC_VISIBILITY => [],
self::PRIVATE_VISIBILITY => [],
self::INTERNAL_VISIBILITY => [],
])
->save();
$this->rbacAttributeName = $this
->config('apigee_edge_apiproduct_rbac.settings')
->get('attribute_name');
}