'custom_entity_blog:read',
'custom_entity_blog:create',
'custom_entity_blog:update',
'custom_entity_blog:delete',
'ce_blog_comment:read',
'ce_blog_comment:create',
'ce_blog_comment:update',
'ce_blog_comment:delete',
];
static::
assertInstanceOf(AclRoleEntity::
class,
$app->
getAclRole());
static::
assertEquals($expected,
$app->
getAclRole()->
getPrivileges());
} private function testAllowDisable(bool
$expected): void
{ $allowed =
$this->
getContainer()->
get(Connection::
class) ->
fetchOne('SELECT allow_disable FROM app WHERE name = :name',
['name' => 'custom-entity-test'
]);
static::
assertEquals($expected,
(bool) $allowed);
}}