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: 451 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 admin/tool/mfa/tests/tool_mfa_trait.php

Defines 1 class


Class: manager_test  - X-Ref

Tests for MFA manager class.

test_get_total_weight()   X-Ref
Tests getting the factor total weight


test_get_status()   X-Ref
Tests getting the factor status


test_passed_enough_factors()   X-Ref
Tests checking if passed enough factors


should_redirect_urls_provider()   X-Ref
The data provider for whether urls should be redirected or not

return: array

test_should_require_mfa_urls($urlstring, $webroot, $status, $params = null)   X-Ref
Tests whether it should require mfa

param: string $urlstring
param: string $webroot
param: bool $status
param: array|null $params

test_should_require_mfa_checks()   X-Ref
Tests whether it should require the mfa checks


test_should_require_mfa_redirection_loop()   X-Ref
Tests should require the mfa redirection loop


test_possible_factor_setup()   X-Ref
Tests checking for possible setup factor


test_is_ready()   X-Ref
Tests checking if a factor is ready


test_core_hooks()   X-Ref
Tests core hooks


test_circular_redirect_auth()   X-Ref
Tests circular redirect auth