public function testSetupObject() { $b = new Behavior(); $b->loadMapping(array('name' => 'foo')); $this->assertEquals($b->getName(), 'foo', 'setupObject() sets the Behavior name from XML attributes'); }
/** * @expectedException Propel\Generator\Exception\LogicException */ public function testSetupObjectFailIfIdGivenOnNotMultipleBehavior() { $b = new Behavior(); $b->loadMapping(['name' => 'foo', 'id' => 'lala']); }