@@ 483-489 (lines=7) @@ | ||
480 | $this->config = Fixtures::get('config'); |
|
481 | } |
|
482 | ||
483 | public function tableExists() |
|
484 | { |
|
485 | foreach ($this->tables as $table) { |
|
486 | $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '".$table."';")->fetch()['count'] > 0; |
|
487 | $this->I->assertTrue($exists, 'テーブルがあるはず '.$table); |
|
488 | } |
|
489 | } |
|
490 | ||
491 | public function tableNotExists() |
|
492 | { |
|
@@ 491-497 (lines=7) @@ | ||
488 | } |
|
489 | } |
|
490 | ||
491 | public function tableNotExists() |
|
492 | { |
|
493 | foreach ($this->tables as $table) { |
|
494 | $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '".$table."';")->fetch()['count'] > 0; |
|
495 | $this->I->assertFalse($exists, 'テーブルがないはず '.$table); |
|
496 | } |
|
497 | } |
|
498 | ||
499 | public function columnExists() |
|
500 | { |