Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 39... Línea 39...
39
 * @package    mod_h5pactivity
39
 * @package    mod_h5pactivity
40
 * @category   test
40
 * @category   test
41
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
41
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
42
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
42
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
43
 */
43
 */
44
class restore_test extends advanced_testcase {
44
final class restore_test extends advanced_testcase {
Línea 45... Línea 45...
45
 
45
 
46
    /**
46
    /**
47
     * Setup to ensure that fixtures are loaded.
47
     * Setup to ensure that fixtures are loaded.
48
     */
48
     */
Línea 153... Línea 153...
153
    /**
153
    /**
154
     * Data provider for test_backup_restore.
154
     * Data provider for test_backup_restore.
155
     *
155
     *
156
     * @return array
156
     * @return array
157
     */
157
     */
158
    public function backup_restore_data(): array {
158
    public static function backup_restore_data(): array {
159
        return [
159
        return [
160
            'Activity attempts and restore with userdata' => [
160
            'Activity attempts and restore with userdata' => [
161
                true, true, [1, 1, 3], [1, 1, 3]
161
                true, true, [1, 1, 3], [1, 1, 3]
162
            ],
162
            ],
163
            'No activity attempts and restore with userdata' => [
163
            'No activity attempts and restore with userdata' => [