#!/bin/bash

## Include utility functions.
. "$XDG_TEST_DIR/include/testassertions.sh"
. "$XDG_TEST_DIR/include/testcontrol.sh"

## test function
test_menu_user_forceupdate() {
test_start "$FUNCNAME: verify forceupdate doesn't error for --mode user"

test_init

set_no_display

test_procedure

assert_exit 0 xdg-desktop-menu forceupdate --mode user
assert_nostdout
assert_nostderr

test_result
}

run_test test_menu_user_forceupdate
