/**
* Tests route access/permissions.
*/
public function testAccess() { // Create a minimal workflow for testing.
$workflow = Workflow::
create(['id' => 'test', 'type' => 'workflow_type_test', 'label' => 'Test'
]);
$workflow ->
getTypePlugin() ->
addState('draft', 'Draft'
) ->
addState('published', 'Published'
) ->
addTransition('publish', 'Publish',
['draft', 'published'
], 'published'
);
$workflow->
save();
$paths =
[ 'admin/config/workflow/workflows',
'admin/config/workflow/workflows/add',
'admin/config/workflow/workflows/manage/test',
'admin/config/workflow/workflows/manage/test/delete',
'admin/config/workflow/workflows/manage/test/add_state',
'admin/config/workflow/workflows/manage/test/state/published',
'admin/config/workflow/workflows/manage/test/state/published/delete',
'admin/config/workflow/workflows/manage/test/add_transition',