protected function ContentEntityNormalizerAlterTest::setUp in Replication 8
Overrides NormalizerTestBase::setUp
File
- tests/
src/ Kernel/ Normalizer/ ContentEntityNormalizerAlterTest.php, line 40
Class
- ContentEntityNormalizerAlterTest
- Tests the content serialization format.
Namespace
Drupal\Tests\replication\Kernel\NormalizerCode
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();
}