Línea 24... |
Línea 24... |
24 |
* @package enrol_lti
|
24 |
* @package enrol_lti
|
25 |
* @copyright 2021 Jake Dallimore <jrhdallimore@gmail.com>
|
25 |
* @copyright 2021 Jake Dallimore <jrhdallimore@gmail.com>
|
26 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
26 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
27 |
* @coversDefaultClass \enrol_lti\local\ltiadvantage\repository\deployment_repository
|
27 |
* @coversDefaultClass \enrol_lti\local\ltiadvantage\repository\deployment_repository
|
28 |
*/
|
28 |
*/
|
29 |
class deployment_repository_test extends \advanced_testcase {
|
29 |
final class deployment_repository_test extends \advanced_testcase {
|
30 |
/**
|
30 |
/**
|
31 |
* Helper to create test deployment objects for use with the repository tests.
|
31 |
* Helper to create test deployment objects for use with the repository tests.
|
32 |
*
|
32 |
*
|
33 |
* @param string $deploymentid the string id of the deployment.
|
33 |
* @param string $deploymentid the string id of the deployment.
|
34 |
* @param int|null $appregistrationid the id of the application registration to which this deployment belongs.
|
34 |
* @param int|null $appregistrationid the id of the application registration to which this deployment belongs.
|
35 |
* @return deployment the deployment.
|
35 |
* @return deployment the deployment.
|
36 |
*/
|
36 |
*/
|
37 |
protected function create_test_deployment(string $deploymentid = 'DeployID123',
|
37 |
protected function create_test_deployment(string $deploymentid = 'DeployID123',
|
38 |
int $appregistrationid = null): deployment {
|
38 |
?int $appregistrationid = null): deployment {
|
Línea 39... |
Línea 39... |
39 |
|
39 |
|
40 |
if (is_null($appregistrationid)) {
|
40 |
if (is_null($appregistrationid)) {
|
41 |
$registration = application_registration::create(
|
41 |
$registration = application_registration::create(
|
42 |
'Test',
|
42 |
'Test',
|