Skip to content

Commit

Permalink
Adjust test.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Oct 10, 2024
1 parent 498d399 commit 5af3b15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/Tests/ORM/Mapping/ClassMetadataTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -975,13 +975,13 @@ public function testCanInstantiateInternalPhpClassSubclassFromUnserializedMetada
self::assertInstanceOf(MyArrayObjectEntity::class, $classMetadata->newInstance());
}

public function testWakeupReflectionWithEmbeddableAndStaticReflectionService(): void
public function testWakeupReflectionWithEmbeddable(): void
{
$classMetadata = new ClassMetadata(TestEntity1::class);

$classMetadata->mapEmbedded(
[
'fieldName' => 'test',
'fieldName' => 'embedded',
'class' => TestEntity1::class,
'columnPrefix' => false,
],
Expand All @@ -991,14 +991,14 @@ public function testWakeupReflectionWithEmbeddableAndStaticReflectionService():
'fieldName' => 'test.embeddedProperty',
'type' => 'string',
'originalClass' => TestEntity1::class,
'declaredField' => 'test',
'originalField' => 'embeddedProperty',
'declaredField' => 'embedded',
'originalField' => 'name',
];

$classMetadata->mapField($field);
$classMetadata->wakeupReflection(new StaticReflectionService());

self::assertEquals(['test' => null, 'test.embeddedProperty' => null], $classMetadata->getPropertyAccessors());
self::assertEquals(['embedded', 'test.embeddedProperty'], array_keys($classMetadata->getPropertyAccessors()));
}

public function testGetColumnNamesWithGivenFieldNames(): void
Expand Down

0 comments on commit 5af3b15

Please sign in to comment.