Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 36... Línea 36...
36
 *
36
 *
37
 * @package    mod_h5pactivity
37
 * @package    mod_h5pactivity
38
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
38
 * @copyright  2020 Ferran Recio <ferran@moodle.com>
39
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
40
 */
40
 */
41
class report_viewed_test extends advanced_testcase {
41
final class report_viewed_test extends advanced_testcase {
Línea 42... Línea 42...
42
 
42
 
43
    /**
43
    /**
44
     * Test report_viewed event.
44
     * Test report_viewed event.
45
     *
45
     *
Línea 112... Línea 112...
112
    /**
112
    /**
113
     * Data provider for data request creation tests.
113
     * Data provider for data request creation tests.
114
     *
114
     *
115
     * @return array
115
     * @return array
116
     */
116
     */
117
    public function report_viewed_data(): array {
117
    public static function report_viewed_data(): array {
118
        return [
118
        return [
119
            // Exception cases.
119
            // Exception cases.
120
            'Event withour other data (exception)' => [
120
            'Event withour other data (exception)' => [
121
                false, false, false, true
121
                false, false, false, true
122
            ],
122
            ],