Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 33... Línea 33...
33
 * @package   core_grades
33
 * @package   core_grades
34
 * @category  test
34
 * @category  test
35
 * @copyright 2019 Andrew Nicols <andrew@nicols.co.uk>
35
 * @copyright 2019 Andrew Nicols <andrew@nicols.co.uk>
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 */
37
 */
38
class store_test extends advanced_testcase {
38
final class store_test extends advanced_testcase {
Línea 39... Línea 39...
39
 
39
 
40
    /**
40
    /**
41
     * Ensure that an execute with an invalid component is rejected.
41
     * Ensure that an execute with an invalid component is rejected.
42
     */
42
     */
Línea 396... Línea 396...
396
    /**
396
    /**
397
     * Data provider for out of range tests.
397
     * Data provider for out of range tests.
398
     *
398
     *
399
     * @return array
399
     * @return array
400
     */
400
     */
401
    public function execute_out_of_range_provider(): array {
401
    public static function execute_out_of_range_provider(): array {
402
        return [
402
        return [
403
            'above' => [
403
            'above' => [
404
                'supplied' => 500,
404
                'suppliedvalue' => 500,
405
            ],
405
            ],
406
            'above just' => [
406
            'above just' => [
407
                'supplied' => 4,
407
                'suppliedvalue' => 4,
408
            ],
408
            ],
409
            'below' => [
409
            'below' => [
410
                'supplied' => -100,
410
                'suppliedvalue' => -100,
411
            ],
411
            ],
412
            '-10' => [
412
            '-10' => [
413
                'supplied' => -10,
413
                'suppliedvalue' => -10,
414
            ],
414
            ],
415
        ];
415
        ];
416
    }
416
    }