/** * test to ensure table does exist */ public function test_ensure_table_does_exist() { //first make sure the table does not exist $users = $this->adapter->has_table('users', true); $this->assertEquals(false, $users); $t1 = new Ruckusing_Adapter_MySQL_TableDefinition($this->adapter, "users", array('options' => 'Engine=InnoDB')); $t1->column("name", "string", array('limit' => 20)); $sql = $t1->finish(); //now make sure it does exist $users = $this->adapter->table_exists('users', true); $this->assertEquals(true, $users); $this->remove_table('users'); }