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]
Test course_enrolment_manager parts.
Copyright: | 2016 Ruslan Kabalin, Lancaster University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 378 lines (18 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
core_course_enrolment_manager_testcase:: (7 methods):
setUp()
test_get_total_users()
test_get_users()
test_get_potential_users()
test_search_other_users()
search_users_provider()
test_search_users()
Class: core_course_enrolment_manager_testcase - X-Ref
Test course_enrolment_manager parts.setUp() X-Ref |
Tests set up |
test_get_total_users() X-Ref |
Verify get_total_users() returned number of users expected in every situation. |
test_get_users() X-Ref |
Verify get_users() returned number of users expected in every situation. |
test_get_potential_users($perpage, $returnexactcount, $expectedusers, $expectedtotalusers, $expectedmoreusers) X-Ref |
Test get_potential_users without returnexactcount param. param: int $perpage Number of users per page. param: bool $returnexactcount Return the exact count or not. param: int $expectedusers Expected number of users return. param: int $expectedtotalusers Expected total of users in database. param: bool $expectedmoreusers Expected for more users return or not. |
test_search_other_users($perpage, $returnexactcount, $expectedusers, $expectedtotalusers, $expectedmoreusers) X-Ref |
Test search_other_users with returnexactcount param. param: int $perpage Number of users per page. param: bool $returnexactcount Return the exact count or not. param: int $expectedusers Expected number of users return. param: int $expectedtotalusers Expected total of users in database. param: bool $expectedmoreusers Expected for more users return or not. |
search_users_provider() X-Ref |
Test case for test_get_potential_users, test_search_other_users and test_search_users tests. return: array Dataset |
test_search_users($perpage, $returnexactcount, $expectedusers, $expectedtotalusers, $expectedmoreusers) X-Ref |
Test search_users function. param: int $perpage Number of users per page. param: bool $returnexactcount Return the exact count or not. param: int $expectedusers Expected number of users return. param: int $expectedtotalusers Expected total of users in database. param: bool $expectedmoreusers Expected for more users return or not. |