Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 311] [Versions 310 and 400] [Versions 310 and 401] [Versions 310 and 402] [Versions 310 and 403] [Versions 39 and 310]

Unit tests for core_user\output\myprofile

Copyright: 2015 onwards Ankit Agarwal
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later (5)
File Size: 378 lines (16 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: core_user_myprofile_testcase  - X-Ref

Unit tests for core_user\output\myprofile

test_node__construct()   X-Ref
Test node::__construct().


test_add_node()   X-Ref
Test category::node_add().


test_category__construct()   X-Ref
Test category::__construct().


test_validate_after_order1()   X-Ref
No description

test_validate_after_order2()   X-Ref
No description

test_find_nodes_after()   X-Ref
Test category::find_nodes_after().


test_sort_nodes1()   X-Ref
Test category::sort_nodes().


test_sort_nodes2()   X-Ref
Test category::sort_nodes() with a mix of content and non content nodes.


test_tree_add_node()   X-Ref
Test tree::add_node().


test_tree_add_category()   X-Ref
Test tree::add_category().


test_find_categories_after()   X-Ref
Test tree::find_categories_after().


test_sort_categories()   X-Ref
Test tree::sort_categories().