| Línea 37... |
Línea 37... |
| 37 |
*
|
37 |
*
|
| 38 |
* @package enrol_lti
|
38 |
* @package enrol_lti
|
| 39 |
* @copyright 2016 Jun Pataleta <jun@moodle.com>
|
39 |
* @copyright 2016 Jun Pataleta <jun@moodle.com>
|
| 40 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
40 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 41 |
*/
|
41 |
*/
|
| 42 |
class sync_members_test extends \advanced_testcase {
|
42 |
final class sync_members_test extends \advanced_testcase {
|
| 43 |
/** @var dummy_sync_members_task $task */
|
43 |
/** @var dummy_sync_members_task $task */
|
| 44 |
protected $task;
|
44 |
protected $task;
|
| Línea 45... |
Línea 45... |
| 45 |
|
45 |
|
| 46 |
/** @var \stdClass $tool The published tool. */
|
46 |
/** @var \stdClass $tool The published tool. */
|
| Línea 57... |
Línea 57... |
| 57 |
|
57 |
|
| 58 |
/** @var ResourceLink $resourcelink */
|
58 |
/** @var ResourceLink $resourcelink */
|
| Línea 59... |
Línea 59... |
| 59 |
protected $resourcelink;
|
59 |
protected $resourcelink;
|
| - |
|
60 |
|
| 60 |
|
61 |
public function setUp(): void {
|
| Línea 61... |
Línea 62... |
| 61 |
public function setUp(): void {
|
62 |
parent::setUp();
|
| 62 |
$this->resetAfterTest();
|
63 |
$this->resetAfterTest();
|
| Línea 303... |
Línea 304... |
| 303 |
* @param Context $context The context object.
|
304 |
* @param Context $context The context object.
|
| 304 |
* @param ResourceLink $resourcelink The resource link object.
|
305 |
* @param ResourceLink $resourcelink The resource link object.
|
| 305 |
* @param string $membershipsurltemplate The memberships endpoint URL template.
|
306 |
* @param string $membershipsurltemplate The memberships endpoint URL template.
|
| 306 |
* @return bool|User[] Array of User objects upon successful membership service request. False, otherwise.
|
307 |
* @return bool|User[] Array of User objects upon successful membership service request. False, otherwise.
|
| 307 |
*/
|
308 |
*/
|
| 308 |
public function do_context_membership_request(Context $context, ResourceLink $resourcelink = null,
|
309 |
public function do_context_membership_request(Context $context, ?ResourceLink $resourcelink = null,
|
| 309 |
$membershipsurltemplate = '') {
|
310 |
$membershipsurltemplate = '') {
|
| 310 |
$members = parent::do_context_membership_request($context, $resourcelink, $membershipsurltemplate);
|
311 |
$members = parent::do_context_membership_request($context, $resourcelink, $membershipsurltemplate);
|
| 311 |
return $members;
|
312 |
return $members;
|
| 312 |
}
|
313 |
}
|