Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 46... Línea 46...
46
    /**
46
    /**
47
     * Test creating the access_prevented event.
47
     * Test creating the access_prevented event.
48
     *
48
     *
49
     * @covers \quizaccess_seb\event\access_prevented
49
     * @covers \quizaccess_seb\event\access_prevented
50
     */
50
     */
51
    public function test_event_access_prevented() {
51
    public function test_event_access_prevented(): void {
52
        $this->resetAfterTest();
52
        $this->resetAfterTest();
Línea 53... Línea 53...
53
 
53
 
54
        $this->setAdminUser();
54
        $this->setAdminUser();
55
        $quiz = $this->create_test_quiz($this->course, \quizaccess_seb\settings_provider::USE_SEB_CONFIG_MANUALLY);
55
        $quiz = $this->create_test_quiz($this->course, \quizaccess_seb\settings_provider::USE_SEB_CONFIG_MANUALLY);
Línea 96... Línea 96...
96
    /**
96
    /**
97
     * Test creating the access_prevented event with provided SEB keys.
97
     * Test creating the access_prevented event with provided SEB keys.
98
     *
98
     *
99
     * @covers \quizaccess_seb\event\access_prevented
99
     * @covers \quizaccess_seb\event\access_prevented
100
     */
100
     */
101
    public function test_event_access_prevented_with_keys() {
101
    public function test_event_access_prevented_with_keys(): void {
102
        $this->resetAfterTest();
102
        $this->resetAfterTest();
Línea 103... Línea 103...
103
 
103
 
104
        $this->setAdminUser();
104
        $this->setAdminUser();
105
        $quiz = $this->create_test_quiz($this->course, \quizaccess_seb\settings_provider::USE_SEB_CONFIG_MANUALLY);
105
        $quiz = $this->create_test_quiz($this->course, \quizaccess_seb\settings_provider::USE_SEB_CONFIG_MANUALLY);
Línea 144... Línea 144...
144
    /**
144
    /**
145
     * Test creating the template_created event.
145
     * Test creating the template_created event.
146
     *
146
     *
147
     * @covers \quizaccess_seb\event\template_created
147
     * @covers \quizaccess_seb\event\template_created
148
     */
148
     */
149
    public function test_event_create_template() {
149
    public function test_event_create_template(): void {
150
        $this->resetAfterTest();
150
        $this->resetAfterTest();
151
        // Set up event with data.
151
        // Set up event with data.
152
        $user = $this->getDataGenerator()->create_user();
152
        $user = $this->getDataGenerator()->create_user();
153
        $this->setUser($user);
153
        $this->setUser($user);