Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 33... Línea 33...
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
33
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
34
 */
34
 */
35
class locallib_participants_test extends \advanced_testcase {
35
class locallib_participants_test extends \advanced_testcase {
36
    use mod_assign_test_generator;
36
    use mod_assign_test_generator;
Línea 37... Línea 37...
37
 
37
 
38
    public function test_list_participants_blind_marking() {
38
    public function test_list_participants_blind_marking(): void {
39
        global $DB;
39
        global $DB;
Línea 40... Línea 40...
40
        $this->resetAfterTest(true);
40
        $this->resetAfterTest(true);
Línea 124... Línea 124...
124
    }
124
    }
Línea 125... Línea 125...
125
 
125
 
126
    /**
126
    /**
127
     * Tests that users who have a submission, but can no longer submit are listed.
127
     * Tests that users who have a submission, but can no longer submit are listed.
128
     */
128
     */
129
    public function test_list_participants_can_no_longer_submit() {
129
    public function test_list_participants_can_no_longer_submit(): void {
130
        global $DB;
130
        global $DB;
131
        $this->resetAfterTest(true);
131
        $this->resetAfterTest(true);
132
        // Create a role that will prevent users submitting.
132
        // Create a role that will prevent users submitting.
133
        $role = self::getDataGenerator()->create_role();
133
        $role = self::getDataGenerator()->create_role();