public function test_versions() { $driver = new Migration_Driver_Mysql(Kohana::TESTING); $versions = $driver->versions()->init(); $versions->clear_all()->set(100)->set(200)->set(300); $this->assertEquals(array(100, 200, 300), $versions->get()); $versions->clear(200); $this->assertEquals(array(100, 300), $versions->get()); }
/** * @dataProvider data_compile_column */ public function test_compile_column($type, $result) { $driver = new Migration_Driver_Mysql(Kohana::TESTING); $this->assertEquals($result, $driver->column('field2')->params($type)->sql()); }