Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / content_moderation / tests / src / Functional / ViewsModerationStateFilterTest.php
index e5b296d7f45ab50fe5b2529bd4661d668798f42d..12f391aea6ded8e375d0b53e5287e8ce5edc3c6d 100644 (file)
@@ -3,6 +3,7 @@
 namespace Drupal\Tests\content_moderation\Functional;
 
 use Drupal\node\Entity\NodeType;
+use Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait;
 use Drupal\Tests\views\Functional\ViewTestBase;
 use Drupal\views\ViewExecutable;
 use Drupal\views\Views;
@@ -17,6 +18,8 @@ use Drupal\workflows\Entity\Workflow;
  */
 class ViewsModerationStateFilterTest extends ViewTestBase {
 
+  use ContentModerationTestTrait;
+
   /**
    * {@inheritdoc}
    */
@@ -45,6 +48,8 @@ class ViewsModerationStateFilterTest extends ViewTestBase {
       'type' => 'example_b',
     ])->save();
 
+    $this->createEditorialWorkflow();
+
     $new_workflow = Workflow::create([
       'type' => 'content_moderation',
       'id' => 'new_workflow',
@@ -201,11 +206,11 @@ class ViewsModerationStateFilterTest extends ViewTestBase {
     return [
       'view on base table, filter on base table' => [
         'test_content_moderation_state_filter_base_table',
-        'Content: Moderation state'
+        'Content: Moderation state',
       ],
       'view on base table, filter on revision table' => [
         'test_content_moderation_state_filter_base_table_filter_on_revision',
-        'Content revision: Moderation state'
+        'Content revision: Moderation state',
       ],
     ];
   }