.../src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php b/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php index e9df564..ce0c307 100644 --- a/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php +++ b/core/modules/serialization/tests/src/Unit/Normalizer/EntityReferenceFieldItemNormalizerTest.php @@ -70,7 +70,7 @@ protected function setUp() { $this->serializer = $this->prophesize(Serializer::class); // Set up the serializer to return an entity property. $this->serializer->normalize(Argument::cetera()) - ->willReturn(['value' => 'test']); + ->willReturn('test'); $this->normalizer->setSerializer($this->serializer->reveal()); @@ -131,7 +131,7 @@ public function testNormalize() { $normalized = $this->normalizer->normalize($this->fieldItem->reveal()); $expected = [ - 'target_id' => ['value' => 'test'], + 'target_id' => 'test', 'target_type' => 'test_type', 'target_uuid' => '080e3add-f9d5-41ac-9821-eea55b7b42fb', 'url' => $test_url, @@ -159,7 +159,7 @@ public function testNormalizeWithNoEntity() { $normalized = $this->normalizer->normalize($this->fieldItem->reveal()); $expected = [ - 'target_id' => ['value' => 'test'], + 'target_id' => 'test', ]; $this->assertSame($expected, $normalized); }