|
@@ 87-93 (lines=7) @@
|
| 84 |
|
$this->assertEquals($lastUser->getId(), 0); |
| 85 |
|
} |
| 86 |
|
|
| 87 |
|
public function testDeleteById() { |
| 88 |
|
$this->insertExample(); |
| 89 |
|
$this->dao->deleteById($this->user->getId()); |
| 90 |
|
|
| 91 |
|
$lastUser = $this->dao->fetchById($this->user->getId()); |
| 92 |
|
$this->assertEquals($lastUser->getId(), 0); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function testValidate() { |
| 96 |
|
$this->insertExample(); |
|
@@ 95-102 (lines=8) @@
|
| 92 |
|
$this->assertEquals($lastUser->getId(), 0); |
| 93 |
|
} |
| 94 |
|
|
| 95 |
|
public function testValidate() { |
| 96 |
|
$this->insertExample(); |
| 97 |
|
$this->user->setEmail('invalid'); |
| 98 |
|
$this->dao->save($this->user); |
| 99 |
|
|
| 100 |
|
$lastUser = $this->dao->fetchById($this->user->getId()); |
| 101 |
|
$this->assertEquals($lastUser->getEmail(), '[email protected]'); |
| 102 |
|
} |
| 103 |
|
|
| 104 |
|
public function testFetch() { |
| 105 |
|
$this->insertExample(); |