protected function ModerationControlTest::setUp in Lightning Workflow 8.3
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ModerationControlTest.php, line 35
Class
- ModerationControlTest
- Tests default visibility of the content_moderation_control extra field.
Namespace
Drupal\Tests\lightning_workflow\KernelCode
protected function setUp() {
parent::setUp();
$this
->installConfig('lightning_workflow');
$this
->installConfig('node');
$this
->createContentType([
'type' => 'page',
'third_party_settings' => [
'lightning_workflow' => [
'workflow' => 'editorial',
],
],
]);
// ContentTypeCreationTrait::createContentType() will add the body field to
// default entity view display, which breaks this test. We are testing the
// *default* visibility of the content_moderation_control extra field, which
// only manifests when creating a new entity view display.
EntityViewDisplay::load('node.page.default')
->delete();
}