コード例 #1
0
ファイル: BehaviorTest.php プロジェクト: robin850/Propel2
 public function testSetupObject()
 {
     $b = new Behavior();
     $b->loadMapping(array('name' => 'foo'));
     $this->assertEquals($b->getName(), 'foo', 'setupObject() sets the Behavior name from XML attributes');
 }
コード例 #2
0
ファイル: BehaviorTest.php プロジェクト: disider/Propel2
 /**
  * @expectedException Propel\Generator\Exception\LogicException
  */
 public function testSetupObjectFailIfIdGivenOnNotMultipleBehavior()
 {
     $b = new Behavior();
     $b->loadMapping(['name' => 'foo', 'id' => 'lala']);
 }