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;
*/
class ViewsModerationStateFilterTest extends ViewTestBase {
+ use ContentModerationTestTrait;
+
/**
* {@inheritdoc}
*/
'type' => 'example_b',
])->save();
+ $this->createEditorialWorkflow();
+
$new_workflow = Workflow::create([
'type' => 'content_moderation',
'id' => 'new_workflow',
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',
],
];
}