From 19e24964bc00c431b7c1eff79939902050fe6a24 Mon Sep 17 00:00:00 2001 From: Christian Burk Date: Fri, 27 Oct 2023 16:34:59 -0500 Subject: [PATCH] VACMS-11334: Updates phpunit test --- .../phpunit/Security/RolesPermissionsTest.php | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/tests/phpunit/Security/RolesPermissionsTest.php b/tests/phpunit/Security/RolesPermissionsTest.php index 2b0fe31ece5..56f79ff49e6 100644 --- a/tests/phpunit/Security/RolesPermissionsTest.php +++ b/tests/phpunit/Security/RolesPermissionsTest.php @@ -191,6 +191,13 @@ public function expectedPerms() { 'use editorial transition create_new_draft', 'use editorial transition publish', 'use editorial transition review', + 'use restricted_archive transition approve', + 'use restricted_archive transition archive', + 'use restricted_archive transition archived_draft', + 'use restricted_archive transition archived_published', + 'use restricted_archive transition create_new_draft', + 'use restricted_archive transition publish', + 'use restricted_archive transition review', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', @@ -252,6 +259,12 @@ public function expectedPerms() { 'view node link report', ], ], + [ + 'content_creator_vba', + [ + 'create vba_facility_service content', + ], + ], [ 'content_creator_vet_center', [ @@ -313,6 +326,7 @@ public function expectedPerms() { 'edit any publication_listing content', 'edit any q_a content', 'edit any regional_health_care_service_des content', + 'edit any service_region content', 'edit any step_by_step content', 'edit any story_listing content', 'edit any support_resources_detail_page content', @@ -324,6 +338,7 @@ public function expectedPerms() { 'edit any vamc_system_policies_page content', 'edit any vamc_system_register_for_care content', 'edit any vba_facility content', + 'edit any vba_facility_service content', 'edit any vet_center content', 'edit any vet_center_cap content', 'edit any vet_center_facility_health_servi content', @@ -349,6 +364,8 @@ public function expectedPerms() { 'update media', 'use editorial transition create_new_draft', 'use editorial transition review', + 'use restricted_archive transition create_new_draft', + 'use restricted_archive transition review', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', @@ -395,6 +412,7 @@ public function expectedPerms() { 'view q_a revisions', 'view regional_health_care_service_des revisions', 'view sections in toolbar', + 'view service_region revisions', 'view step_by_step revisions', 'view story_listing revisions', 'view support_resources_detail_page revisions', @@ -408,6 +426,7 @@ public function expectedPerms() { 'view vamc_system_policies_page revisions', 'view vamc_system_register_for_care revisions', 'view vba_facility revisions', + 'view vba_facility_service revisions', 'view vet_center revisions', 'view vet_center_cap revisions', 'view vet_center_facility_health_servi revisions', @@ -471,6 +490,7 @@ public function expectedPerms() { 'edit any publication_listing content', 'edit any q_a content', 'edit any regional_health_care_service_des content', + 'edit any service_region content', 'edit any step_by_step content', 'edit any story_listing content', 'edit any support_resources_detail_page content', @@ -482,6 +502,7 @@ public function expectedPerms() { 'edit any vamc_system_policies_page content', 'edit any vamc_system_register_for_care content', 'edit any vba_facility content', + 'edit any vba_facility_service content', 'edit any vet_center content', 'edit any vet_center_cap content', 'edit any vet_center_facility_health_servi content', @@ -500,6 +521,9 @@ public function expectedPerms() { 'use editorial transition approve', 'use editorial transition create_new_draft', 'use editorial transition review', + 'use restricted_archive transition approve', + 'use restricted_archive transition create_new_draft', + 'use restricted_archive transition review', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', @@ -546,6 +570,7 @@ public function expectedPerms() { 'view q_a revisions', 'view regional_health_care_service_des revisions', 'view sections in toolbar', + 'view service_region revisions', 'view step_by_step revisions', 'view story_listing revisions', 'view support_resources_detail_page revisions', @@ -559,6 +584,7 @@ public function expectedPerms() { 'view vamc_system_policies_page revisions', 'view vamc_system_register_for_care revisions', 'view vba_facility revisions', + 'view vba_facility_service revisions', 'view vet_center revisions', 'view vet_center_cap revisions', 'view vet_center_facility_health_servi revisions', @@ -624,6 +650,7 @@ public function expectedPerms() { 'edit any publication_listing content', 'edit any q_a content', 'edit any regional_health_care_service_des content', + 'edit any service_region content', 'edit any step_by_step content', 'edit any story_listing content', 'edit any support_resources_detail_page content', @@ -635,6 +662,7 @@ public function expectedPerms() { 'edit any vamc_system_policies_page content', 'edit any vamc_system_register_for_care content', 'edit any vba_facility content', + 'edit any vba_facility_service content', 'edit any vet_center content', 'edit any vet_center_cap content', 'edit any vet_center_facility_health_servi content', @@ -689,6 +717,7 @@ public function expectedPerms() { 'revert publication_listing revisions', 'revert q_a revisions', 'revert regional_health_care_service_des revisions', + 'revert service_region revisions', 'revert step_by_step revisions', 'revert story_listing revisions', 'revert support_resources_detail_page revisions', @@ -700,6 +729,7 @@ public function expectedPerms() { 'revert vamc_system_policies_page revisions', 'revert vamc_system_register_for_care revisions', 'revert vba_facility revisions', + 'revert vba_facility_service revisions', 'revert vet_center revisions', 'revert vet_center_cap revisions', 'revert vet_center_facility_health_servi revisions', @@ -725,6 +755,10 @@ public function expectedPerms() { 'use editorial transition create_new_draft', 'use editorial transition publish', 'use editorial transition review', + 'use restricted_archive transition approve', + 'use restricted_archive transition create_new_draft', + 'use restricted_archive transition publish', + 'use restricted_archive transition review', 'use text format rich_text', 'use text format rich_text_limited', 'use workbench access', @@ -771,6 +805,7 @@ public function expectedPerms() { 'view q_a revisions', 'view regional_health_care_service_des revisions', 'view sections in toolbar', + 'view service_region revisions', 'view step_by_step revisions', 'view story_listing revisions', 'view support_resources_detail_page revisions', @@ -784,6 +819,7 @@ public function expectedPerms() { 'view vamc_system_policies_page revisions', 'view vamc_system_register_for_care revisions', 'view vba_facility revisions', + 'view vba_facility_service revisions', 'view vet_center revisions', 'view vet_center_cap revisions', 'view vet_center_facility_health_servi revisions', @@ -878,6 +914,13 @@ public function expectedPerms() { 'use editorial transition create_new_draft', 'use editorial transition publish', 'use editorial transition review', + 'use restricted_archive transition approve', + 'use restricted_archive transition archive', + 'use restricted_archive transition archived_draft', + 'use restricted_archive transition archived_published', + 'use restricted_archive transition create_new_draft', + 'use restricted_archive transition publish', + 'use restricted_archive transition review', 'view any unpublished content', 'view benefit_promo revisions', 'view cta_with_link revisions', @@ -904,6 +947,13 @@ public function expectedPerms() { 'use editorial transition publish', 'use editorial transition archived_published', 'use editorial transition review', + 'use restricted_archive transition approve', + 'use restricted_archive transition archive', + 'use restricted_archive transition archived_draft', + 'use restricted_archive transition archived_published', + 'use restricted_archive transition create_new_draft', + 'use restricted_archive transition publish', + 'use restricted_archive transition review', 'view any unpublished content', 'view latest version', 'access content overview',