public function testManyToOne_Unidirectional() { $this->game2sound = new EntityRelation($this->game, $this->sound, EntityRelation::MANY_TO_ONE, EntityRelation::UNIDIRECTIONAL); $this->game2sound->setNullable(TRUE); $builder = new EntityBuilder('Game', $this->module); $builder->createDefaultId(); $builder->buildRelation($this->game2sound); $m2o = $this->assertCommonRelation($builder, 'sound', 'ManyToOne', 'Psc\\Entities\\Sound'); $this->assertNull($m2o->inversedBy); }