Exemplo n.º 1
0
 public function testSaveAndLoad()
 {
     $email = new Email();
     $email->setPerson_id($this->testPerson_id);
     $email->setEmail('something@localhost');
     $email->save();
     $id = $email->getId();
     $this->assertNotEmpty($id);
     $email = new Email($id);
     $this->assertEquals('something@localhost', $email->getEmail());
 }