[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/badges/tests/ -> badgeslib_test.php (summary)

Unit tests for badges

Author: Yuliya Bozhko <yuliya.bozhko@totaralms.com>
Copyright: 2013 onwards Totara Learning Solutions Ltd {@link http://www.totaralms.com/}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 541 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_badges_badgeslib_testcase:: (19 methods):
  setUp()
  test_create_badge()
  test_clone_badge()
  test_badge_status()
  test_delete_badge()
  test_create_badge_criteria()
  test_add_badge_criteria_description()
  test_delete_badge_criteria()
  test_badge_awards()
  test_badges_get_user_badges()
  data_for_message_from_template()
  test_badge_message_from_template()
  test_badges_observer_course_module_criteria_review()
  test_badges_observer_course_criteria_review()
  test_badges_observer_profile_criteria_review()
  test_badges_assertion()
  test_core_badges_myprofile_navigation()
  test_core_badges_myprofile_navigation_badges_disabled()
  test_core_badges_myprofile_navigation_with_course_badge()


Class: core_badges_badgeslib_testcase  - X-Ref

setUp()   X-Ref
No description

test_create_badge()   X-Ref
No description

test_clone_badge()   X-Ref
No description

test_badge_status()   X-Ref
No description

test_delete_badge()   X-Ref
No description

test_create_badge_criteria()   X-Ref
No description

test_add_badge_criteria_description()   X-Ref
No description

test_delete_badge_criteria()   X-Ref
No description

test_badge_awards()   X-Ref
No description

test_badges_get_user_badges()   X-Ref
Test the {@link badges_get_user_badges()} function in lib/badgeslib.php


data_for_message_from_template()   X-Ref
No description

test_badge_message_from_template($message, $params, $result)   X-Ref


test_badges_observer_course_module_criteria_review()   X-Ref
Test badges observer when course module completion event id fired.


test_badges_observer_course_criteria_review()   X-Ref
Test badges observer when course_completed event is fired.


test_badges_observer_profile_criteria_review()   X-Ref
Test badges observer when user_updated event is fired.


test_badges_assertion()   X-Ref
Test badges assertion generated when a badge is issued.


test_core_badges_myprofile_navigation()   X-Ref
Tests the core_badges_myprofile_navigation() function.


test_core_badges_myprofile_navigation_badges_disabled()   X-Ref
Tests the core_badges_myprofile_navigation() function with badges disabled..


test_core_badges_myprofile_navigation_with_course_badge()   X-Ref
Tests the core_badges_myprofile_navigation() function with a course badge.




Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1