public function testUpdateByCriteria() { $criteria = $this->table->where('firstname=?', 'Llama')->update(array('firstname' => 'Alpaca')); $this->assertRowCount(1, "select * from user where `firstname`='Alpaca'"); }