function StateFormatterTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/modules/ content_moderation/ tests/ src/ Kernel/ StateFormatterTest.php, line 34 
Class
- StateFormatterTest
- Test the state field formatter.
Namespace
Drupal\Tests\content_moderation\KernelCode
protected function setUp() : void {
  parent::setUp();
  $this->installEntitySchema('entity_test_rev');
  $this->installEntitySchema('content_moderation_state');
  $this->installConfig('content_moderation');
  $workflow = $this->createEditorialWorkflow();
  $workflow->getTypePlugin()
    ->addEntityTypeAndBundle('entity_test_rev', 'entity_test_rev');
  $workflow->save();
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
