コード例 #1
0
 public function testUnlinkChildsWithDeletedPersona()
 {
     $repository = $this->getRepository();
     $fixtures = $this->createFamilyFixtures();
     $father = new Persona();
     $father->populate($fixtures['father']);
     $fatherId = $father->getId();
     $this->assertTableHasData('persona', ['father_id' => $father->getId()]);
     $repository->delete($father);
     $this->assertTableHasNotData('persona', ['father_id' => $fatherId]);
 }