Exemplo n.º 1
0
 /**
  * Test that false is returned when you try to add a child to a
  *     group not yet loaded
  */
 public function testAddChildNoId()
 {
     $ds = $this->getMockBuilder('\\Psecio\\Gatekeeper\\DataSource\\Mysql')->disableOriginalConstructor()->getMock();
     $group1 = new GroupModel($ds);
     $group2 = new GroupModel($ds);
     $this->assertFalse($group1->addChild($group2));
 }