namespace Drupal\Tests\menu_ui\Functional;
use Drupal\Tests\BrowserTestBase;
-use Drupal\workflows\Entity\Workflow;
+use Drupal\Tests\content_moderation\Traits\ContentModerationTestTrait;
/**
* Tests Menu UI and Content Moderation integration.
*/
class MenuUiContentModerationTest extends BrowserTestBase {
+ use ContentModerationTestTrait;
+
/**
* Modules to install.
*
'display_submitted' => FALSE,
]);
- $workflow = Workflow::load('editorial');
+ $workflow = $this->createEditorialWorkflow();
$workflow->getTypePlugin()->addEntityTypeAndBundle('node', 'page');
$workflow->save();
}