Permalink
Browse files

Tests: doplnen chybejici test pro code coverage RelationshipMetaData:…

…:getCanConnectWithEntities
  • Loading branch information...
1 parent ecc3d66 commit 10c7efb7fa009ba52f9370e8e9237fe847a5d6a6 @PetrP committed Feb 26, 2014
@@ -2,6 +2,7 @@
use Orm\MetaData;
use Orm\RepositoryContainer;
+use Orm\RelationshipMetaDataManyToMany;
/**
@@ -21,6 +22,15 @@ public function test()
), $meta->getCanConnectWithEntities($r));
}
+ public function test2()
+ {
+ $r = new RepositoryContainer;
+ $meta = new RelationshipMetaDataManyToMany('Association_Entity', 'manyToMany1', 'Association_Repository', 'manyToMany2', NULL, true);
+ $this->assertSame(array(
+ 'association_entity' => 'Association_Entity',
+ ), $meta->getCanConnectWithEntities($r));
+ }
+
public function testReflection()
{
$r = new ReflectionMethod('Orm\RelationshipMetaDataManyToMany', 'getCanConnectWithEntities');

0 comments on commit 10c7efb

Please sign in to comment.