X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcontent_moderation%2Ftests%2Fsrc%2FFunctional%2FContentModerationWorkflowTypeTest.php;fp=web%2Fcore%2Fmodules%2Fcontent_moderation%2Ftests%2Fsrc%2FFunctional%2FContentModerationWorkflowTypeTest.php;h=cbe5807a5fbed274d7892e26630f5fdfecb86cff;hp=195718a6fe286ebc7298343085622eb2069cd2bd;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php b/web/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php index 195718a6f..cbe5807a5 100644 --- a/web/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php +++ b/web/core/modules/content_moderation/tests/src/Functional/ContentModerationWorkflowTypeTest.php @@ -19,6 +19,7 @@ class ContentModerationWorkflowTypeTest extends BrowserTestBase { public static $modules = [ 'content_moderation', 'node', + 'entity_test', ]; /** @@ -92,10 +93,15 @@ class ContentModerationWorkflowTypeTest extends BrowserTestBase { $session->fieldDisabled('type_settings[default_revision]'); $this->drupalGet('admin/config/workflow/workflows/manage/test/type/node'); - $session->pageTextContains('Select the content type entities for the Test workflow'); + $session->pageTextContains('Select the content types for the Test workflow'); foreach ($types as $type) { $session->pageTextContains($type->label()); + $session->elementContains('css', sprintf('.form-item-bundles-%s label', $type->id()), sprintf('Update %s', $type->label())); } + + // Ensure warning message are displayed for unsupported features. + $this->drupalGet('admin/config/workflow/workflows/manage/test/type/entity_test_rev'); + $this->assertSession()->pageTextContains('Test entity - revisions entities do not support publishing statuses. For example, even after transitioning from a published workflow state to an unpublished workflow state they will still be visible to site visitors.'); } }