Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.

(no description)

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

Defines 1 class

auth_server_config_reader_test:: (2 methods):
  test_read_configuration()
  config_provider()


Class: auth_server_config_reader_test  - X-Ref

Unit tests for {@see auth_server_config_reader}.

test_read_configuration(string $issuerurl, ResponseInterface $httpresponse, ?string $altwellknownsuffix = null,array $expected = [])   X-Ref
Test reading the config for an auth server.

param: string $issuerurl the auth server issuer URL.
param: ResponseInterface $httpresponse a stub HTTP response.
param: null|string $altwellknownsuffix an alternate value for the well known suffix to use in the reader.
param: array $expected test expectations.
return: void

config_provider()   X-Ref
Provider for testing read_configuration().

return: array test data.