Skip to content
Snippets Groups Projects

Issue #3211271: Fix compatibility for og alpha6

Merged Maarten Segers requested to merge issue/og_menu-3211271:3211271-og-alpha6 into 8.x-1.x
Files
2
@@ -86,16 +86,16 @@ class OgMenuAccessTest extends KernelTestBase {
$this->users['uid1'] = User::create(['name' => $this->randomString()]);
$this->users['uid1']->save();
// Create an 'OG administrator' user who has the global 'administer group'
// permission. This user should be able to access everything related to any
// group.
// Create an 'OG administrator' user who has the global
// 'administer organic groups' permission.
// This user should be able to access everything related to any group.
/** @var RoleInterface $og_menu_admin_role */
$admin_role = Role::create([
'id' => $this->randomMachineName(),
'label' => $this->randomString(),
]);
$admin_role
->grantPermission('administer group')
->grantPermission('administer organic groups')
->save();
$this->users['ogadmin'] = User::create([
'name' => $this->randomString(),
@@ -111,6 +111,7 @@ class OgMenuAccessTest extends KernelTestBase {
'label' => $this->randomString(),
]);
$og_menu_admin_role
->grantPermission('administer group')
->grantPermission('administer og menu')
->save();
Loading