'language' =>
['read'
],
'custom_field_set' =>
['update'
],
'order' =>
['read'
],
],
$manifest->
getPermissions()->
getPermissions());
} public function testAsParsedPrivileges(): void
{ $manifest = Manifest::
createFromXmlFile(__DIR__ . '/../_fixtures/test-manifest.xml'
);
static::
assertNotNull($manifest->
getPermissions());
static::
assertCount(16,
$manifest->
getPermissions()->
asParsedPrivileges());
static::
assertEquals([ 'product:create',
'product:read',
'product:update',
'product:delete',
'category:delete',
'category:read',
'product_manufacturer:create',
'product_manufacturer:read',
'product_manufacturer:delete',
'tax:create',