use Drupal\node\Entity\Node;
use Drupal\simpletest\ContentTypeCreationTrait;
use Drupal\Tests\BrowserTestBase;
-use Drupal\workflows\Entity\Workflow;
+use Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait;
/**
* Test the content moderation actions.
class ModerationActionsTest extends BrowserTestBase {
use ContentTypeCreationTrait;
+ use ContentModerationTestTrait;
/**
* Modules to enable.
$standard_bundle = $this->createContentType(['type' => 'standard_bundle']);
$standard_bundle->save();
- $workflow = Workflow::load('editorial');
+ $workflow = $this->createEditorialWorkflow();
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'moderated_bundle');
$workflow->save();