use Drupal\node\Entity\NodeType;
use Drupal\Tests\BrowserTestBase;
-use Drupal\workflows\Entity\Workflow;
+use Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait;
/**
* Tests path aliases with Content Moderation.
*/
class PathContentModerationTest extends BrowserTestBase {
+ use ContentModerationTestTrait;
+
/**
* Modules to install.
*
$node_type->save();
// Set the content type as moderated.
- $workflow = Workflow::load('editorial');
+ $workflow = $this->createEditorialWorkflow();
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'moderated');
$workflow->save();