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: 193 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

migration_claim_test:: (4 methods):
  setUp()
  get_stub_legacy_consumer_repo()
  test_migration_claim()
  migration_claim_provider()


Class: migration_claim_test  - X-Ref

Tests for migration_claim.

setUp()   X-Ref
Setup run for each test case.


get_stub_legacy_consumer_repo()   X-Ref
Returns a stub legacy_consumer_repository, allowing tests to verify claims using a predefined secret.


test_migration_claim(array $migrationclaimdata, string $deploymentid, string $platform,string $clientid, string $exp, string $nonce, legacy_consumer_repository $legacyconsumerrepo,array $expected)   X-Ref
Test instantiation and getters of the migration_claim.

param: array $migrationclaimdata the lti1p1 migration claim.
param: string $deploymentid string id of the tool deployment.
param: string $platform string url of the issuer.
param: string $clientid string id of the client.
param: string $exp expiry time.
param: string $nonce nonce.
param: legacy_consumer_repository $legacyconsumerrepo legacy consumer repo instance.
param: array $expected array containing expectation data.

migration_claim_provider()   X-Ref
Data provider testing migration_claim instantiation.

return: array[] the test case data.