protected function DefaultRevisionStateTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/content_moderation/tests/src/Kernel/DefaultRevisionStateTest.php \Drupal\Tests\content_moderation\Kernel\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() {
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');
}