Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 35... Línea 35...
35
 *
35
 *
36
 * @package core_calendar
36
 * @package core_calendar
37
 * @copyright 2014 Ankit Agarwal <ankit.agrr@gmail.com>
37
 * @copyright 2014 Ankit Agarwal <ankit.agrr@gmail.com>
38
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 */
39
 */
40
class events_test extends \advanced_testcase {
40
final class events_test extends \advanced_testcase {
Línea 41... Línea 41...
41
 
41
 
42
    /**
42
    /**
43
     * The test user.
43
     * The test user.
44
     */
44
     */
Línea 52... Línea 52...
52
    /**
52
    /**
53
     * Test set up.
53
     * Test set up.
54
     */
54
     */
55
    protected function setUp(): void {
55
    protected function setUp(): void {
56
        global $USER;
56
        global $USER;
-
 
57
        parent::setUp();
57
        // The user we are going to test this on.
58
        // The user we are going to test this on.
58
        $this->setAdminUser();
59
        $this->setAdminUser();
59
        $this->user = $USER;
60
        $this->user = $USER;
60
        $this->course = self::getDataGenerator()->create_course();
61
        $this->course = self::getDataGenerator()->create_course();
61
    }
62
    }