protected function ChangesFactoryTest::setUp in Replication 8
Overrides KernelTestBase::setUp
File
- tests/
src/ Kernel/ ChangesFactoryTest.php, line 29
Class
- ChangesFactoryTest
- Tests the replication_log serialization format.
Namespace
Drupal\Tests\replication\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('node');
$this
->installEntitySchema('replication_log');
$this
->installEntitySchema('workspace');
$this
->installSchema('key_value', [
'key_value_sorted',
]);
$this
->installConfig([
'multiversion',
]);
\Drupal::service('multiversion.manager')
->enableEntityTypes();
$this->workspace = Workspace::create([
'machine_name' => 'default',
'type' => 'basic',
]);
$this->workspace
->save();
}