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