protected function setUp() { parent::setUp(); DbImportCommand::execute('Document', [[1, 'doc 1', 12.34], [2, 'doc 2', 0]], ['column_names' => ['id', 'name', 'decimal']]); }
/** * @expectedException InvalidArgumentException */ public function testInvalidColumnNumber() { DbImportCommand::execute('Document', [['id' => 1, 'name' => 'doc 1', 'decimal' => 12.34], ['id' => 2]]); }
protected function setUp() { parent::setUp(); DbImportCommand::execute('Document', [[1, 'doc 1', 12.34], [2, 'doc 2', null]], ['column_names' => ['id', 'name', 'decimal']]); $this->engine = new DbClientEngine(); }