From 91f8a16b815f70f9837c73ed474118bf6065bc83 Mon Sep 17 00:00:00 2001 From: Michael Kinnunen Date: Fri, 22 Dec 2023 10:23:52 -0500 Subject: [PATCH] VACMS-16418: Fix unit test to reflect block content permission changes. --- .../phpunit/Security/RolesPermissionsTest.php | 43 +++++++++++-------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/tests/phpunit/Security/RolesPermissionsTest.php b/tests/phpunit/Security/RolesPermissionsTest.php index 3d3b546a46..ccbab80fc7 100644 --- a/tests/phpunit/Security/RolesPermissionsTest.php +++ b/tests/phpunit/Security/RolesPermissionsTest.php @@ -98,6 +98,7 @@ public function expectedPerms() { [ 'content_admin', [ + 'access block library', 'accept translation jobs', 'access administration pages', 'access files overview', @@ -140,9 +141,14 @@ public function expectedPerms() { 'delete image revisions', 'delete promo revisions', 'delete video revisions', + 'edit any alert block content', + 'edit any benefit_promo block content', + 'edit any cta_with_link block content', 'edit any document media', 'edit any document_external media', 'edit any image media', + 'edit any news_promo block content', + 'edit any promo block content', 'edit any video media', 'execute changed_filename_unflag node', 'execute changed_title_unflag node', @@ -177,12 +183,7 @@ public function expectedPerms() { 'unflag new', 'unflag new_form', 'unflag removed_from_source', - 'update any alert block content', - 'update any benefit_promo block content', - 'update any cta_with_link block content', 'update any media', - 'update any news_promo block content', - 'update any promo block content', 'update content translations', 'update media', 'use editorial transition approve', @@ -236,6 +237,7 @@ public function expectedPerms() { [ 'content_creator_benefits_hubs', [ + 'access block library', 'access files overview', 'create landing_page content', 'create page content', @@ -247,6 +249,7 @@ public function expectedPerms() { [ 'content_creator_resources_and_support', [ + 'access block library', 'access files overview', 'create checklist content', 'create faq_multiple_q_a content', @@ -278,6 +281,7 @@ public function expectedPerms() { 'content_editor', [ 'access administration pages', + 'access block library', 'access content overview', 'access files overview', 'access media overview', @@ -292,6 +296,7 @@ public function expectedPerms() { 'create media', 'create promo block content', 'create video media', + 'edit any alert block content', 'edit any banner content', 'edit any basic_landing_page content', 'edit any campaign_landing_page content', @@ -323,6 +328,7 @@ public function expectedPerms() { 'edit any person_profile content', 'edit any press_release content', 'edit any press_releases_listing content', + 'edit any promo block content', 'edit any promo_banner content', 'edit any publication_listing content', 'edit any q_a content', @@ -360,9 +366,7 @@ public function expectedPerms() { 'revert image revisions', 'revert promo revisions', 'revert video revisions', - 'update any alert block content', 'update any media', - 'update any promo block content', 'update media', 'use editorial transition create_new_draft', 'use editorial transition review', @@ -446,6 +450,7 @@ public function expectedPerms() { 'content_reviewer', [ 'access administration pages', + 'access block library', 'access content overview', 'access files overview', 'access media overview', @@ -458,6 +463,7 @@ public function expectedPerms() { 'create media', 'create promo block content', 'create video media', + 'edit any alert block content', 'edit any banner content', 'edit any basic_landing_page content', 'edit any campaign_landing_page content', @@ -489,6 +495,7 @@ public function expectedPerms() { 'edit any person_profile content', 'edit any press_release content', 'edit any press_releases_listing content', + 'edit any promo block content', 'edit any promo_banner content', 'edit any publication_listing content', 'edit any q_a content', @@ -518,9 +525,7 @@ public function expectedPerms() { 'execute entity:break_lock node', 'notify of path changes', 'rebuild tablefield', - 'update any alert block content', 'update any media', - 'update any promo block content', 'update media', 'use editorial transition approve', 'use editorial transition create_new_draft', @@ -606,6 +611,7 @@ public function expectedPerms() { 'content_publisher', [ 'access administration pages', + 'access block library', 'access content overview', 'access files overview', 'access media overview', @@ -620,11 +626,14 @@ public function expectedPerms() { 'create media', 'create promo block content', 'create video media', + 'edit any alert block content', 'edit any banner content', 'edit any basic_landing_page content', + 'edit any benefit_promo block content', 'edit any campaign_landing_page content', 'edit any centralized_content content', 'edit any checklist content', + 'edit any cta_with_link block content', 'edit any document media', 'edit any document_external media', 'edit any documentation_page content', @@ -644,6 +653,7 @@ public function expectedPerms() { 'edit any media_list_images content', 'edit any media_list_videos content', 'edit any nca_facility content', + 'edit any news_promo block content', 'edit any news_story content', 'edit any office content', 'edit any outreach_asset content', @@ -651,6 +661,7 @@ public function expectedPerms() { 'edit any person_profile content', 'edit any press_release content', 'edit any press_releases_listing content', + 'edit any promo block content', 'edit any promo_banner content', 'edit any publication_listing content', 'edit any q_a content', @@ -749,12 +760,7 @@ public function expectedPerms() { 'unflag changed_title', 'unflag deleted', 'unflag new_form', - 'update any alert block content', - 'update any benefit_promo block content', - 'update any cta_with_link block content', 'update any media', - 'update any news_promo block content', - 'update any promo block content', 'update media', 'use editorial transition approve', 'use editorial transition archive', @@ -874,6 +880,7 @@ public function expectedPerms() { [ 'office_content_creator', [ + 'access block library', 'access files overview', 'create event content', 'create outreach_asset content', @@ -884,6 +891,7 @@ public function expectedPerms() { [ 'vamc_content_creator', [ + 'access block library', 'access files overview', 'create event content', 'create full_width_banner_alert content', @@ -901,19 +909,20 @@ public function expectedPerms() { [ 'homepage_manager', [ + 'access block library', 'create benefit_promo block content', 'create cta_with_link block content', 'create news_promo block content', 'delete benefit_promo revisions', 'delete cta_with_link revisions', 'delete news_promo revisions', + 'edit any benefit_promo block content', + 'edit any cta_with_link block content', + 'edit any news_promo block content', 'manipulate entityqueues', 'revert benefit_promo revisions', 'revert cta_with_link revisions', 'revert news_promo revisions', - 'update any benefit_promo block content', - 'update any cta_with_link block content', - 'update any news_promo block content', 'update home_page_hero entityqueue', 'update home_page_news_spotlight entityqueue', 'update v2_home_page_create_account entityqueue',