'operation' => AclRoleDefinition::PRIVILEGE_DELETE,
],
[ 'entity' => 'plugin',
'operation' => AclRoleDefinition::PRIVILEGE_READ,
],
];
public function testItCategorizesAPermissionCollection(): void
{ $permissionCollection =
new PermissionCollection(self::PERMISSIONS
);
$categorizedCollection =
$permissionCollection->
getCategorizedPermissions();
static::
assertCount(3,
$categorizedCollection);
static::
assertEquals([ 'product',
'promotion',
'other',
],
array_keys($categorizedCollection));
} public function testItAddsMissingReadPermissionDependencies(): void
{