Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 247 lines (11 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

get_user_badge_by_hash_test:: (3 methods):
  prepare_test_data()
  test_get_user_badge_by_hash()
  test_get_user_badge_by_hash_with_restrictions()


Class: get_user_badge_by_hash_test  - X-Ref

Tests for external function get_user_badge_by_hash.

prepare_test_data()   X-Ref
Prepare the test.

return: array

test_get_user_badge_by_hash()   X-Ref
Test get user badge by hash.
These are a basic tests since the badges_get_my_user_badges used by the external function already has unit tests.


test_get_user_badge_by_hash_with_restrictions()   X-Ref
Test get user badge by hash with restrictions.