| @@ 85-92 (lines=8) @@ | ||
| 82 | * |
|
| 83 | * @return bool |
|
| 84 | */ |
|
| 85 | public function dontSeeInDatabase($table, array $where) |
|
| 86 | { |
|
| 87 | $this->db->from($table); |
|
| 88 | $this->db->where($where); |
|
| 89 | $count = $this->db->count_all_results(); |
|
| 90 | ||
| 91 | $this->assertTrue($count == 0, 'Row was found in database'); |
|
| 92 | } |
|
| 93 | ||
| 94 | //-------------------------------------------------------------------- |
|
| 95 | ||
| @@ 105-112 (lines=8) @@ | ||
| 102 | * |
|
| 103 | * @return bool |
|
| 104 | */ |
|
| 105 | public function seeInDatabase($table, array $where) |
|
| 106 | { |
|
| 107 | $this->db->from($table); |
|
| 108 | $this->db->where($where); |
|
| 109 | $count = $this->db->count_all_results(); |
|
| 110 | ||
| 111 | $this->assertTrue($count > 0, 'Row not found in database'); |
|
| 112 | } |
|
| 113 | ||
| 114 | //-------------------------------------------------------------------- |
|
| 115 | ||