Skip to content

Commit

Permalink
fix: class normalisation test (#9966)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Aug 7, 2022
1 parent c8025dc commit f7e202f
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
use Doctrine\Tests\Models\JoinedInheritanceType\RootClass;
use Doctrine\Tests\Models\Quote;
use Doctrine\Tests\OrmTestCase;
use DoctrineGlobalArticle;
use Exception;
use InvalidArgumentException;
use ReflectionClass;
Expand Down Expand Up @@ -151,25 +150,6 @@ public function testGetMetadataForThrowsExceptionOnMissingCustomGeneratorDefinit
$actual = $cmf->getMetadataFor($cm1->name);
}

public function testHasGetMetadataNamespaceSeparatorIsNotNormalized(): void
{
require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php';

$metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']);

$entityManager = $this->createEntityManager($metadataDriver);

$mf = $entityManager->getMetadataFactory();
$m1 = $mf->getMetadataFor(DoctrineGlobalArticle::class);
$h1 = $mf->hasMetadataFor(DoctrineGlobalArticle::class);
$h2 = $mf->hasMetadataFor('\\' . DoctrineGlobalArticle::class);
$m2 = $mf->getMetadataFor('\\' . DoctrineGlobalArticle::class);

self::assertNotSame($m1, $m2);
self::assertFalse($h2);
self::assertTrue($h1);
}

/**
* @group DDC-1512
*/
Expand Down

0 comments on commit f7e202f

Please sign in to comment.