You are here

protected function BulkDocsNormalizerTest::setUp in Replication 8.2

Overrides NormalizerTestBase::setUp

File

tests/src/Unit/Normalizer/BulkDocsNormalizerTest.php, line 43

Class

BulkDocsNormalizerTest
Tests the content serialization format.

Namespace

Drupal\Tests\replication\Unit\Normalizer

Code

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();
}