@@ 438-444 (lines=7) @@ | ||
435 | $this->config = Fixtures::get('config'); |
|
436 | } |
|
437 | ||
438 | public function tableExists() |
|
439 | { |
|
440 | foreach ($this->tables as $table) { |
|
441 | $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '".$table."';")->fetch()['count'] > 0; |
|
442 | $this->I->assertTrue($exists, 'テーブルがあるはず '.$table); |
|
443 | } |
|
444 | } |
|
445 | ||
446 | public function tableNotExists() |
|
447 | { |
|
@@ 446-452 (lines=7) @@ | ||
443 | } |
|
444 | } |
|
445 | ||
446 | public function tableNotExists() |
|
447 | { |
|
448 | foreach ($this->tables as $table) { |
|
449 | $exists = $this->conn->executeQuery("SELECT count(*) AS count FROM information_schema.columns WHERE table_name = '".$table."';")->fetch()['count'] > 0; |
|
450 | $this->I->assertFalse($exists, 'テーブルがないはず '.$table); |
|
451 | } |
|
452 | } |
|
453 | ||
454 | public function columnExists() |
|
455 | { |