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 291... Línea 291...
291
    /**
291
    /**
292
     * Data provider for out of range tests.
292
     * Data provider for out of range tests.
293
     *
293
     *
294
     * @return array
294
     * @return array
295
     */
295
     */
296
    public function execute_out_of_range_provider(): array {
296
    public static function execute_out_of_range_provider(): array {
297
        return [
297
        return [
298
            'above' => [
298
            'above' => [
299
                'max' => 100,
299
                'maxvalue' => 100,
300
                'supplied' => 101,
300
                'suppliedvalue' => 101,
301
            ],
301
            ],
302
            'above just' => [
302
            'above just' => [
303
                'max' => 100,
303
                'maxvalue' => 100,
304
                'supplied' => 101.001,
304
                'suppliedvalue' => 101.001,
305
            ],
305
            ],
306
            'below' => [
306
            'below' => [
307
                'max' => 100,
307
                'maxvalue' => 100,
308
                'supplied' => -100,
308
                'suppliedvalue' => -100,
309
            ],
309
            ],
310
            '-1' => [
310
            '-1' => [
311
                'max' => 100,
311
                'maxvalue' => 100,
312
                'supplied' => -1,
312
                'suppliedvalue' => -1,
313
            ],
313
            ],
314
        ];
314
        ];
315
    }
315
    }