protected function ContentModerationSyncingTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/tests/src/Kernel/ContentModerationSyncingTest.php \Drupal\Tests\content_moderation\Kernel\ContentModerationSyncingTest::setUp()
Overrides KernelTestBase::setUp
File
- core/
modules/ content_moderation/ tests/ src/ Kernel/ ContentModerationSyncingTest.php, line 31
Class
- ContentModerationSyncingTest
- Test content moderation when an entity is marked as 'syncing'.
Namespace
Drupal\Tests\content_moderation\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('workflow');
$this
->installEntitySchema('content_moderation_state');
$this
->installEntitySchema('entity_test_mulrevpub');
$workflow = $this
->createEditorialWorkflow();
$workflow
->getTypePlugin()
->addEntityTypeAndBundle('entity_test_mulrevpub', 'entity_test_mulrevpub');
$workflow
->save();
}