/**
* @covers ::generatePermissions
*/
public function testGeneratePermissions() { EntityTestBundle::
create([ 'id' => 'test1',
])->
save();
EntityTestBundle::
create([ 'id' => 'test2',
])->
save();
$permissions =
$this->
generatePermissions(EntityTestBundle::
loadMultiple(),
[$this, 'buildPermissions'
]);
$this->
assertSame([ 'title' => 'Create',
'dependencies' =>
['config' =>
['entity_test.entity_test_bundle.test1'
]],
],
$permissions['create test1'
]);
$this->
assertSame([ 'title' => 'Edit',
'dependencies' =>
[ 'config' =>
[ 'test_module.entity.test1',
'entity_test.entity_test_bundle.test1',
],