Example #1
0
 public function testGetParent()
 {
     $child = $this->childrenTable->getRow(1);
     $parent = $this->parentsTable->getRow($child['parent_id']);
     $childParent = $this->childrenTable->getParent('parents', 1);
     $this->assertCommonFieldsMatch($parent->toArray(), $childParent->toArray());
 }