edd_is_test_mode()

This function can be used to check if test mode is enabled for Easy Digital Downloads.

$test_mode = edd_is_test_mode();
// (boolean) "false" if not enabled
// (boolean) "true" if is enabled