Skip to content

Commit f7e202f

Browse files
authored
fix: class normalisation test (#9966)
1 parent c8025dc commit f7e202f

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

tests/Doctrine/Tests/ORM/Mapping/ClassMetadataFactoryTest.php

-20
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
use Doctrine\Tests\Models\JoinedInheritanceType\RootClass;
4040
use Doctrine\Tests\Models\Quote;
4141
use Doctrine\Tests\OrmTestCase;
42-
use DoctrineGlobalArticle;
4342
use Exception;
4443
use InvalidArgumentException;
4544
use ReflectionClass;
@@ -151,25 +150,6 @@ public function testGetMetadataForThrowsExceptionOnMissingCustomGeneratorDefinit
151150
$actual = $cmf->getMetadataFor($cm1->name);
152151
}
153152

154-
public function testHasGetMetadataNamespaceSeparatorIsNotNormalized(): void
155-
{
156-
require_once __DIR__ . '/../../Models/Global/GlobalNamespaceModel.php';
157-
158-
$metadataDriver = $this->createAnnotationDriver([__DIR__ . '/../../Models/Global/']);
159-
160-
$entityManager = $this->createEntityManager($metadataDriver);
161-
162-
$mf = $entityManager->getMetadataFactory();
163-
$m1 = $mf->getMetadataFor(DoctrineGlobalArticle::class);
164-
$h1 = $mf->hasMetadataFor(DoctrineGlobalArticle::class);
165-
$h2 = $mf->hasMetadataFor('\\' . DoctrineGlobalArticle::class);
166-
$m2 = $mf->getMetadataFor('\\' . DoctrineGlobalArticle::class);
167-
168-
self::assertNotSame($m1, $m2);
169-
self::assertFalse($h2);
170-
self::assertTrue($h1);
171-
}
172-
173153
/**
174154
* @group DDC-1512
175155
*/

0 commit comments

Comments
 (0)