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\ags_info
25
 * @coversDefaultClass \enrol_lti\local\ltiadvantage\entity\ags_info
26
 */
26
 */
27
class ags_info_test extends \advanced_testcase {
27
final class ags_info_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
     * @dataProvider instantiation_data_provider
31
     * @dataProvider instantiation_data_provider
Línea 56... Línea 56...
56
 
56
 
57
    /**
57
    /**
58
     * Data provider for testing object instantiation.
58
     * Data provider for testing object instantiation.
59
     * @return array the data for testing.
59
     * @return array the data for testing.
60
     */
60
     */
61
    public function instantiation_data_provider(): array {
61
    public static function instantiation_data_provider(): array {
62
        return [
62
        return [
63
            'Both lineitems and lineitem URL provided with full list of valid scopes' => [
63
            'Both lineitems and lineitem URL provided with full list of valid scopes' => [
64
                'args' => [
64
                'args' => [
65
                    'lineitemsurl' => new \moodle_url('https://platform.example.org/10/lineitems'),
65
                    'lineitemsurl' => new \moodle_url('https://platform.example.org/10/lineitems'),