protected function MultiversionIndexFactoryTest::setUp in Multiversion 8.2
Same name and namespace in other branches
- 8 tests/src/Kernel/MultiversionIndexFactoryTest.php \Drupal\Tests\multiversion\Kernel\MultiversionIndexFactoryTest::setUp()
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ MultiversionIndexFactoryTest.php, line 33
Class
- MultiversionIndexFactoryTest
- @group multiversion
Namespace
Drupal\Tests\multiversion\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('workspace');
$this
->installConfig('multiversion');
$this->multiversionIndexFactory = \Drupal::service('multiversion.entity_index.factory');
$this->workspace = Workspace::create([
'id' => 'le_workspace',
'label' => 'Le Workspace',
]);
$this->workspace
->save();
}