You are here

protected function ContentEntityNormalizerAlterTest::setUp in Replication 8.2

Overrides NormalizerTestBase::setUp

File

tests/src/Unit/Normalizer/ContentEntityNormalizerAlterTest.php, line 41

Class

ContentEntityNormalizerAlterTest
Tests the content serialization format.

Namespace

Drupal\Tests\replication\Unit\Normalizer

Code

protected function setUp() {
  parent::setUp();

  // Create a test entity to serialize.
  $this->values = [
    'name' => $this
      ->randomMachineName(),
    'user_id' => 1,
    'field_test_text' => [
      'value' => $this
        ->randomMachineName(),
      'format' => 'full_html',
    ],
  ];
  $this->entity = EntityTestMulRev::create($this->values);
  $this->entity
    ->save();
}