예제 #1
0
 public function test_add_column()
 {
     $ci =& get_instance();
     $ci->load = new Mock_Loader();
     $ci->dbforge = new Mock_DBForge();
     $ci->load->expect_call('dbforge');
     $ci->dbforge->expect_call('add_column', 1, array('table_name', Schema_Test_Data::mock_column_data()), array(), 'after_column');
     Schema::add_column('table_name', 'column_name', 'integer', array(), 'after_column');
     $ci->load->assert($this);
     $ci->dbforge->assert($this);
 }
예제 #2
0
 public function columns()
 {
     return Schema_Test_Data::mock_column_data();
 }