1
0
mirror of synced 2024-12-14 07:06:04 +03:00

test join table quote

This commit is contained in:
Fabio B. Silva 2012-06-04 17:18:03 -03:00
parent 2b8e24fb09
commit 7215c1a3b1

View File

@ -309,7 +309,9 @@ class ClassMetadataFactoryTest extends \Doctrine\Tests\OrmTestCase
$this->assertEquals('address-id', $address['joinColumns'][0]['referencedColumnName']); $this->assertEquals('address-id', $address['joinColumns'][0]['referencedColumnName']);
$groups = $userMetadata->associationMappings['groups']; $groups = $userMetadata->associationMappings['groups'];
$this->assertTrue($groups['joinTable']['quoted']);
$this->assertTrue($groups['joinTable']['joinColumns'][0]['quoted']); $this->assertTrue($groups['joinTable']['joinColumns'][0]['quoted']);
$this->assertEquals('quote-users-groups', $groups['joinTable']['name']);
$this->assertEquals('user-id', $groups['joinTable']['joinColumns'][0]['name']); $this->assertEquals('user-id', $groups['joinTable']['joinColumns'][0]['name']);
$this->assertEquals('user-id', $groups['joinTable']['joinColumns'][0]['referencedColumnName']); $this->assertEquals('user-id', $groups['joinTable']['joinColumns'][0]['referencedColumnName']);