Beispiel #1
0
 public function testCreateNewInheritance()
 {
     $column = $this->getMockBuilder('Propel\\Generator\\Model\\Column')->disableOriginalConstructor()->getMock();
     $inheritance = new Inheritance();
     $inheritance->setPackage('Foo');
     $inheritance->setAncestor('BaseObject');
     $inheritance->setKey('baz');
     $inheritance->setClassName('Foo\\Bar');
     $inheritance->setColumn($column);
     $this->assertInstanceOf('Propel\\Generator\\Model\\Column', $inheritance->getColumn());
     $this->assertSame('Foo', $inheritance->getPackage());
     $this->assertSame('BaseObject', $inheritance->getAncestor());
     $this->assertSame('baz', $inheritance->getKey());
     $this->assertSame('Foo\\Bar', $inheritance->getClassName());
 }