Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 40... Línea 40...
40
 *
40
 *
41
 * @package    mod_h5pactivity
41
 * @package    mod_h5pactivity
42
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
42
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
43
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
44
 */
44
 */
45
class get_attempts_test extends externallib_advanced_testcase {
45
final class get_attempts_test extends externallib_advanced_testcase {
Línea 46... Línea 46...
46
 
46
 
47
    /**
47
    /**
48
     * Test the behaviour of get_attempts.
48
     * Test the behaviour of get_attempts.
49
     *
49
     *
Línea 152... Línea 152...
152
    /**
152
    /**
153
     * Data provider for the test_execute tests.
153
     * Data provider for the test_execute tests.
154
     *
154
     *
155
     * @return  array
155
     * @return  array
156
     */
156
     */
157
    public function execute_data(): array {
157
    public static function execute_data(): array {
158
        return [
158
        return [
159
            // Teacher checking a user with attempts.
159
            // Teacher checking a user with attempts.
160
            'Manual grade, Teacher asking participant with attempts' => [
160
            'Manual grade, Teacher asking participant with attempts' => [
161
                manager::GRADEMANUAL, 'editingteacher', 'student', true, 2
161
                manager::GRADEMANUAL, 'editingteacher', 'student', true, 2
162
            ],
162
            ],
Línea 456... Línea 456...
456
    /**
456
    /**
457
     * Data provider for the test_execute_multipleusers.
457
     * Data provider for the test_execute_multipleusers.
458
     *
458
     *
459
     * @return  array
459
     * @return  array
460
     */
460
     */
461
    public function execute_multipleusers_data(): array {
461
    public static function execute_multipleusers_data(): array {
462
        return [
462
        return [
463
            // Teacher checks.
463
            // Teacher checks.
464
            'Teacher checking students with attempts' => [
464
            'Teacher checking students with attempts' => [
465
                'editingteacher', ['student1', 'student2'], [], ['student1', 'student2']
465
                'editingteacher', ['student1', 'student2'], [], ['student1', 'student2']
466
            ],
466
            ],