function DefaultRevisionStateTest::setUp
Overrides KernelTestBase::setUp
File
- 
              core/modules/ content_moderation/ tests/ src/ Kernel/ DefaultRevisionStateTest.php, line 44 
Class
- DefaultRevisionStateTest
- Tests the correct default revision is set.
Namespace
Drupal\Tests\content_moderation\KernelCode
protected function setUp() : void {
  parent::setUp();
  $this->installSchema('node', 'node_access');
  $this->installEntitySchema('node');
  $this->installEntitySchema('user');
  $this->installEntitySchema('entity_test_with_bundle');
  $this->installEntitySchema('entity_test_rev');
  $this->installEntitySchema('entity_test_mulrevpub');
  $this->installEntitySchema('block_content');
  $this->installEntitySchema('content_moderation_state');
  $this->installConfig('content_moderation');
  $this->entityTypeManager = $this->container
    ->get('entity_type.manager');
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
