CI->Appointments_Model ->get_value('start_datetime', $random_record_id); } catch (InvalidArgumentException $db_exc) { $has_thrown_exception = TRUE; } $this->CI->unit->run($has_thrown_exception, TRUE, 'Test get_value() with record id that does not exist.'); }