1
0
mirror of synced 2025-01-19 15:01:40 +03:00

added failing test

This commit is contained in:
Bart van den Burg 2012-06-29 14:57:13 +02:00 committed by Marco Pivetta
parent 51528fbdea
commit 19c52e4ae1

View File

@ -50,6 +50,9 @@ class ResolveTargetEntityListenerTest extends \Doctrine\Tests\OrmTestCase
array()
);
$evm->addEventListener(Events::loadClassMetadata, $this->listener);
$this->assertNotNull($this->factory->getMetadataFor('Doctrine\Tests\ORM\Tools\ResolveTargetInterface'));
$cm = $this->factory->getMetadataFor('Doctrine\Tests\ORM\Tools\ResolveTargetEntity');
$meta = $cm->associationMappings;
$this->assertSame('Doctrine\Tests\ORM\Tools\TargetEntity', $meta['manyToMany']['targetEntity']);