Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 22... Línea 22...
22
 * @package enrol_lti
22
 * @package enrol_lti
23
 * @copyright 2021 Jake Dallimore <jrhdallimore@gmail.com>
23
 * @copyright 2021 Jake Dallimore <jrhdallimore@gmail.com>
24
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
25
 * @coversDefaultClass \enrol_lti\local\ltiadvantage\entity\context
25
 * @coversDefaultClass \enrol_lti\local\ltiadvantage\entity\context
26
 */
26
 */
27
class context_test extends \advanced_testcase {
27
final class context_test extends \advanced_testcase {
Línea 28... Línea 28...
28
 
28
 
29
    /**
29
    /**
30
     * Test creation of the object instances.
30
     * Test creation of the object instances.
31
     *
31
     *
Línea 50... Línea 50...
50
 
50
 
51
    /**
51
    /**
52
     * Data provider for testing object instantiation.
52
     * Data provider for testing object instantiation.
53
     * @return array[] the data for testing.
53
     * @return array[] the data for testing.
54
     */
54
     */
55
    public function instantiation_data_provider(): array {
55
    public static function instantiation_data_provider(): array {
56
        return [
56
        return [
57
            'Creation of a course section context' => [
57
            'Creation of a course section context' => [
58
                'args' => [
58
                'args' => [
59
                    'deploymentid' => 24,
59
                    'deploymentid' => 24,