Skip to content

Commit

Permalink
VACMS-16418: Fix unit test to reflect block content permission changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Becapa committed Dec 22, 2023
1 parent 34b3d26 commit 91f8a16
Showing 1 changed file with 26 additions and 17 deletions.
43 changes: 26 additions & 17 deletions tests/phpunit/Security/RolesPermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function expectedPerms() {
[
'content_admin',
[
'access block library',
'accept translation jobs',
'access administration pages',
'access files overview',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -236,6 +237,7 @@ public function expectedPerms() {
[
'content_creator_benefits_hubs',
[
'access block library',
'access files overview',
'create landing_page content',
'create page content',
Expand All @@ -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',
Expand Down Expand Up @@ -278,6 +281,7 @@ public function expectedPerms() {
'content_editor',
[
'access administration pages',
'access block library',
'access content overview',
'access files overview',
'access media overview',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -446,6 +450,7 @@ public function expectedPerms() {
'content_reviewer',
[
'access administration pages',
'access block library',
'access content overview',
'access files overview',
'access media overview',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -606,6 +611,7 @@ public function expectedPerms() {
'content_publisher',
[
'access administration pages',
'access block library',
'access content overview',
'access files overview',
'access media overview',
Expand All @@ -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',
Expand All @@ -644,13 +653,15 @@ 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',
'edit any page content',
'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',
Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -874,6 +880,7 @@ public function expectedPerms() {
[
'office_content_creator',
[
'access block library',
'access files overview',
'create event content',
'create outreach_asset content',
Expand All @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 91f8a16

Please sign in to comment.