public function testSelectMinThrowsExceptionOnEmptyValue() { $builder = new BaseBuilder('invoices', $this->db); $this->setExpectedException('CodeIgniter\\DatabaseException', 'The query you submitted is not valid.'); $builder->selectSum(''); }