Skip to content

Commit

Permalink
Merge pull request doctrine#9000 from derrabus/bugfix/missing-imports
Browse files Browse the repository at this point in the history
Fix class casing and avoid name collisions
  • Loading branch information
greg0ire authored Sep 11, 2021
2 parents 399b69a + 4555355 commit fb89129
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Doctrine/Tests/ORM/Tools/SchemaValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,17 +205,17 @@ public function testInvalidAssociationInsideEmbeddable(): void
*/
public function testMappedSuperclassNotPresentInDiscriminator(): void
{
$class1 = $this->em->getClassMetadata(MappedSuperclass::class);
$class1 = $this->em->getClassMetadata(MappedSuperclassEntity::class);
$ce = $this->validator->validateClass($class1);

$this->assertEquals([], $ce);
}
}

/**
* @MappedSuperClass
* @MappedSuperclass
*/
abstract class MappedSuperclass extends ParentEntity
abstract class MappedSuperclassEntity extends ParentEntity
{
}

Expand All @@ -237,7 +237,7 @@ abstract class ParentEntity
/**
* @Entity
*/
class ChildEntity extends MappedSuperclass
class ChildEntity extends MappedSuperclassEntity
{
}

Expand Down

0 comments on commit fb89129

Please sign in to comment.