| @@ 92-99 (lines=8) @@ | ||
| 89 | * |
|
| 90 | * @return bool |
|
| 91 | */ |
|
| 92 | public function dontSeeInDatabase($table, array $where) |
|
| 93 | { |
|
| 94 | $this->db->from($table); |
|
| 95 | $this->db->where($where); |
|
| 96 | $count = $this->db->count_all_results(); |
|
| 97 | ||
| 98 | $this->assertTrue($count == 0, 'Row was found in database'); |
|
| 99 | } |
|
| 100 | ||
| 101 | //-------------------------------------------------------------------- |
|
| 102 | ||
| @@ 112-119 (lines=8) @@ | ||
| 109 | * |
|
| 110 | * @return bool |
|
| 111 | */ |
|
| 112 | public function seeInDatabase($table, array $where) |
|
| 113 | { |
|
| 114 | $this->db->from($table); |
|
| 115 | $this->db->where($where); |
|
| 116 | $count = $this->db->count_all_results(); |
|
| 117 | ||
| 118 | $this->assertTrue($count > 0, 'Row not found in database'); |
|
| 119 | } |
|
| 120 | ||
| 121 | //-------------------------------------------------------------------- |
|
| 122 | ||