Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

(no description)

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

Defines 1 class


Class: application_registration_test  - X-Ref

Tests for application_registration.

test_creation(array $args, array $expectations)   X-Ref
Test the creation of an application_registration instance.

param: array $args the arguments to the creation method.
param: array $expectations various expectations for the test cases.

creation_data_provider()   X-Ref
Data provider for testing the creation of application_registration instances.

return: array the data for testing.

test_create_draft(array $args, array $expectations)   X-Ref
Test the creation of a draft application_registration instances.

param: array $args the arguments to the creation method.
param: array $expectations various expectations for the test cases.

test_complete_registration()   X-Ref
Test that complete registration can transition a pending registration in the correct state to a complete registration.


create_draft_data_provider()   X-Ref
Data provider for testing draft creation.

return: array the test case data.

test_add_tool_deployment(array $args, array $expectations)   X-Ref
Test the factory method for creating a tool deployment associated with the registration instance.

param: array $args the arguments to the creation method.
param: array $expectations various expectations for the test cases.

add_tool_deployment_data_provider()   X-Ref
Data provider for testing the add_tool_deployment method.

return: array the array of test data.