protected function MultiversionFunctionalTestBase::setUp in Multiversion 8
Overrides BrowserTestBase::setUp
8 calls to MultiversionFunctionalTestBase::setUp()
- CommentStatisticsTest::setUp in tests/
src/ Functional/ CommentStatisticsTest.php - ComplexLcaResolverTest::setUp in tests/
src/ Functional/ ComplexLcaResolverTest.php - ConflictTrackerTest::setUp in tests/
src/ Functional/ ConflictTrackerTest.php - EntityQueryTest::setUp in tests/
src/ Functional/ EntityQueryTest.php - EntityStorageTest::setUp in tests/
src/ Functional/ EntityStorageTest.php
8 methods override MultiversionFunctionalTestBase::setUp()
- CommentStatisticsTest::setUp in tests/
src/ Functional/ CommentStatisticsTest.php - ComplexLcaResolverTest::setUp in tests/
src/ Functional/ ComplexLcaResolverTest.php - ConflictTrackerTest::setUp in tests/
src/ Functional/ ConflictTrackerTest.php - EntityQueryTest::setUp in tests/
src/ Functional/ EntityQueryTest.php - EntityStorageTest::setUp in tests/
src/ Functional/ EntityStorageTest.php
File
- tests/
src/ Functional/ MultiversionFunctionalTestBase.php, line 75
Class
- MultiversionFunctionalTestBase
- Defines a base class for testing the Multiversion module.
Namespace
Drupal\Tests\multiversion\FunctionalCode
protected function setUp() {
parent::setUp();
$this->entityTypeManager = $this->container
->get('entity_type.manager');
$this->uuidIndex = $this->container
->get('multiversion.entity_index.uuid');
$this->revIndex = $this->container
->get('multiversion.entity_index.rev');
$this->revTree = $this->container
->get('multiversion.entity_index.rev.tree');
$this->multiversionManager = $this->container
->get('multiversion.manager');
$this->workspaceManager = $this->container
->get('workspace.manager');
$this->entityDefinitionUpdateManager = $this->container
->get('entity.definition_update_manager');
// Create Basic page and Article node types.
if ($this->profile != 'standard') {
$this
->drupalCreateContentType([
'type' => 'article',
'name' => 'Article',
]);
}
// Create comment field on article.
$this
->addDefaultCommentField('node', 'article');
$test_user = $this
->drupalCreateUser([
'administer workspaces',
]);
$this
->drupalLogin($test_user);
}