diff --git a/core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php b/core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php index 50aaa2c26b..7407f43fc2 100644 --- a/core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php +++ b/core/modules/workflows/tests/modules/workflow_type_test/src/Plugin/WorkflowType/WorkflowCustomAccessType.php @@ -23,30 +23,30 @@ class WorkflowCustomAccessType extends WorkflowTypeBase { public function defaultConfiguration() { return [ 'states' => [ - 'cant_update' => [ - 'label' => 'Cant Update State', + 'can_not_update' => [ + 'label' => 'Can Not Update State', 'weight' => 0, ], - 'cant_delete' => [ - 'label' => 'Cant Delete State', + 'can_not_delete' => [ + 'label' => 'Can Not Delete State', 'weight' => 0, ], ], 'transitions' => [ - 'cant_update' => [ - 'label' => 'Cant Update Transition', - 'to' => 'cant_update', + 'can_not_update' => [ + 'label' => 'Can Not Update Transition', + 'to' => 'can_not_update', 'weight' => 0, 'from' => [ - 'cant_update', + 'can_not_update', ], ], - 'cant_delete' => [ - 'label' => 'Cant Delete Transition', - 'to' => 'cant_delete', + 'can_not_delete' => [ + 'label' => 'Can Not Delete Transition', + 'to' => 'can_not_delete', 'weight' => 1, 'from' => [ - 'cant_delete', + 'can_not_delete', ], ], ], diff --git a/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php b/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php index e58c151d0e..847deac26e 100644 --- a/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php +++ b/core/modules/workflows/tests/src/Functional/WorkflowCustomStateTransitionAccessTest.php @@ -54,10 +54,10 @@ protected function setUp() { public function testCustomWorkflowAccessOperations() { $this->drupalLogin($this->adminUser); $forbidden_paths = [ - 'admin/config/workflow/workflows/manage/test_type/state/cant_delete/delete', - 'admin/config/workflow/workflows/manage/test_type/state/cant_update', - 'admin/config/workflow/workflows/manage/test_type/transition/cant_update', - 'admin/config/workflow/workflows/manage/test_type/transition/cant_delete/delete', + 'admin/config/workflow/workflows/manage/test_type/state/can_not_delete/delete', + 'admin/config/workflow/workflows/manage/test_type/state/can_not_update', + 'admin/config/workflow/workflows/manage/test_type/transition/can_not_update', + 'admin/config/workflow/workflows/manage/test_type/transition/can_not_delete/delete', 'admin/config/workflow/workflows/manage/test_type/add_state', 'admin/config/workflow/workflows/manage/test_type/add_transition', ]; @@ -71,10 +71,10 @@ public function testCustomWorkflowAccessOperations() { // Update the forbidden operations which deny access to the actions // represented by the above paths. $this->container->get('state')->set('workflow_type_test_forbidden_operations', [ - 'update-state:cant_update', - 'delete-state:cant_delete', - 'update-transition:cant_update', - 'delete-transition:cant_delete', + 'update-state:can_not_update', + 'delete-state:can_not_delete', + 'update-transition:can_not_update', + 'delete-transition:can_not_delete', 'add-state', 'add-transition', ]);