/**
* test remove named timestamps
*/
public function test_remove_named_timestamps()
{
$bm = new Ruckusing_Migration_Base($this->adapter);
$table_name = 'users';
$created_name = 'created';
$updated_name = 'updated';
//create it
$this->adapter->execute_ddl("CREATE TABLE {$table_name} ( name varchar(20), {$created_name} timestamp not null, {$updated_name} timestamp not null );");
//verify they exists
$col = $this->adapter->column_info($table_name, $created_name);
$this->assertEquals($created_name, $col['field']);
$col = $this->adapter->column_info($table_name, $updated_name);
$this->assertEquals($updated_name, $col['field']);
//drop them
$bm->remove_timestamps($table_name, $created_name, $updated_name);
//verify they does not exist
$col = $this->adapter->column_info($table_name, $created_name);
fwrite(STDERR, print_r($col, TRUE));
$this->assertEquals(null, $col);
$col = $this->adapter->column_info($table_name, $updated_name);
fwrite(STDERR, print_r($col, TRUE));
$this->assertEquals(null, $col);
$this->drop_table($table_name);
}