| @@ 79-86 (lines=8) @@ | ||
| 76 | * |
|
| 77 | * @return bool |
|
| 78 | */ |
|
| 79 | public function dontSeeInDatabase($table, array $where) |
|
| 80 | { |
|
| 81 | $this->db->from($table); |
|
| 82 | $this->db->where($where); |
|
| 83 | $count = $this->db->count_all_results(); |
|
| 84 | ||
| 85 | $this->assertTrue($count == 0, 'Row was found in database'); |
|
| 86 | } |
|
| 87 | ||
| 88 | //-------------------------------------------------------------------- |
|
| 89 | ||
| @@ 99-106 (lines=8) @@ | ||
| 96 | * |
|
| 97 | * @return bool |
|
| 98 | */ |
|
| 99 | public function seeInDatabase($table, array $where) |
|
| 100 | { |
|
| 101 | $this->db->from($table); |
|
| 102 | $this->db->where($where); |
|
| 103 | $count = $this->db->count_all_results(); |
|
| 104 | ||
| 105 | $this->assertTrue($count > 0, 'Row not found in database'); |
|
| 106 | } |
|
| 107 | ||
| 108 | //-------------------------------------------------------------------- |
|
| 109 | ||