protected function BulkDocsNormalizerTest::setUp in Replication 8
Overrides NormalizerTestBase::setUp
File
- tests/
src/ Kernel/ Normalizer/ BulkDocsNormalizerTest.php, line 43
Class
- BulkDocsNormalizerTest
- Tests the content serialization format.
Namespace
Drupal\Tests\replication\Kernel\NormalizerCode
protected function setUp() {
parent::setUp();
$this->testEntities = $this
->createTestEntities('entity_test_mulrev', $this->testValuesNumber);
$this->workspaceManager = $this->container
->get('workspace.manager');
$this->bulkDocs = $this->container
->get('replication.bulkdocs_factory')
->get($this->workspaceManager
->getActiveWorkspace());
$this->bulkDocs
->setEntities($this->testEntities);
$this->bulkDocs
->save();
}