Skip to content

Commit

Permalink
Fix class casing and avoid name collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Sep 11, 2021
1 parent b1f89a5 commit 4555355
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 4555355

Please sign in to comment.