Proyectos de Subversion Moodle

Rev

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

Rev 11 Rev 1441
Línea 30... Línea 30...
30
 * @package    mod_assign
30
 * @package    mod_assign
31
 * @category   test
31
 * @category   test
32
 * @copyright  1999 onwards Martin Dougiamas  {@link http://moodle.com}
32
 * @copyright  1999 onwards Martin Dougiamas  {@link http://moodle.com}
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 base_test extends \advanced_testcase {
35
final class base_test extends \advanced_testcase {
Línea 36... Línea 36...
36
 
36
 
37
    /** @var Default number of students to create */
37
    /** @var Default number of students to create */
38
    const DEFAULT_STUDENT_COUNT = 3;
38
    const DEFAULT_STUDENT_COUNT = 3;
39
    /** @var Default number of teachers to create */
39
    /** @var Default number of teachers to create */
Línea 81... Línea 81...
81
    /**
81
    /**
82
     * Setup function - we will create a course and add an assign instance to it.
82
     * Setup function - we will create a course and add an assign instance to it.
83
     */
83
     */
84
    protected function setUp(): void {
84
    protected function setUp(): void {
85
        global $DB;
85
        global $DB;
-
 
86
        parent::setUp();
Línea 86... Línea 87...
86
 
87
 
Línea 87... Línea 88...
87
        $this->resetAfterTest(true);
88
        $this->resetAfterTest(true);
88
 
89
 
Línea 131... Línea 132...
131
            groups_add_member($this->groups[$i % self::GROUP_COUNT], $student);
132
            groups_add_member($this->groups[$i % self::GROUP_COUNT], $student);
132
        }
133
        }
133
    }
134
    }
Línea 134... Línea 135...
134
 
135
 
135
    /*
136
    /*
136
     * For tests that make sense to use alot of data, create extra students/teachers.
137
     * For tests that make sense to use a lot of data, create extra students/teachers.
137
     */
138
     */
138
    protected function create_extra_users() {
139
    protected function create_extra_users() {
139
        global $DB;
140
        global $DB;
140
        $this->extrateachers = array();
141
        $this->extrateachers = array();