Línea 212... |
Línea 212... |
212 |
* @param array|null $legacydata legacy user and tool data, if testing migration cases.
|
212 |
* @param array|null $legacydata legacy user and tool data, if testing migration cases.
|
213 |
* @param array $launchdata data describing the launch, including user data and migration claim data.
|
213 |
* @param array $launchdata data describing the launch, including user data and migration claim data.
|
214 |
* @param array $expected the test case expectations.
|
214 |
* @param array $expected the test case expectations.
|
215 |
* @covers ::find_or_create_user_from_launch
|
215 |
* @covers ::find_or_create_user_from_launch
|
216 |
*/
|
216 |
*/
|
217 |
public function test_find_or_create_user_from_launch(?array $legacydata, array $launchdata, array $expected = []) {
|
217 |
public function test_find_or_create_user_from_launch(?array $legacydata, array $launchdata, array $expected = []): void {
|
218 |
$this->resetAfterTest();
|
218 |
$this->resetAfterTest();
|
219 |
global $DB;
|
219 |
global $DB;
|
220 |
$auth = get_auth_plugin('lti');
|
220 |
$auth = get_auth_plugin('lti');
|
Línea 221... |
Línea 221... |
221 |
|
221 |
|
Línea 714... |
Línea 714... |
714 |
* @param string|null $legacyconsumerkey optional legacy consumer_key value for testing user migration
|
714 |
* @param string|null $legacyconsumerkey optional legacy consumer_key value for testing user migration
|
715 |
* @param array $expected the test case expectations.
|
715 |
* @param array $expected the test case expectations.
|
716 |
* @covers ::find_or_create_user_from_membership
|
716 |
* @covers ::find_or_create_user_from_membership
|
717 |
*/
|
717 |
*/
|
718 |
public function test_find_or_create_user_from_membership(?array $legacydata, array $memberdata, string $iss,
|
718 |
public function test_find_or_create_user_from_membership(?array $legacydata, array $memberdata, string $iss,
|
719 |
?string $legacyconsumerkey, array $expected) {
|
719 |
?string $legacyconsumerkey, array $expected): void {
|
Línea 720... |
Línea 720... |
720 |
|
720 |
|
721 |
$this->resetAfterTest();
|
721 |
$this->resetAfterTest();
|
722 |
global $DB;
|
722 |
global $DB;
|
Línea 1049... |
Línea 1049... |
1049 |
/**
|
1049 |
/**
|
1050 |
* Test the behaviour of create_user_binding().
|
1050 |
* Test the behaviour of create_user_binding().
|
1051 |
*
|
1051 |
*
|
1052 |
* @covers ::create_user_binding
|
1052 |
* @covers ::create_user_binding
|
1053 |
*/
|
1053 |
*/
|
1054 |
public function test_create_user_binding() {
|
1054 |
public function test_create_user_binding(): void {
|
1055 |
$this->resetAfterTest();
|
1055 |
$this->resetAfterTest();
|
1056 |
global $DB;
|
1056 |
global $DB;
|
1057 |
$auth = get_auth_plugin('lti');
|
1057 |
$auth = get_auth_plugin('lti');
|
1058 |
$user = $this->getDataGenerator()->create_user();
|
1058 |
$user = $this->getDataGenerator()->create_user();
|
1059 |
$mockiss = $this->issuer;
|
1059 |
$mockiss = $this->issuer;
|