Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 41... Línea 41...
41
    /**
41
    /**
42
     * Test that basic module data is returned.
42
     * Test that basic module data is returned.
43
     *
43
     *
44
     * @covers ::get_context_data
44
     * @covers ::get_context_data
45
     */
45
     */
46
    public function test_get_context_data_context_module() {
46
    public function test_get_context_data_context_module(): void {
47
        $this->resetAfterTest();
47
        $this->resetAfterTest();
Línea 48... Línea 48...
48
 
48
 
49
        // Setup.
49
        // Setup.
50
        $course = $this->getDataGenerator()->create_course();
50
        $course = $this->getDataGenerator()->create_course();
Línea 80... Línea 80...
80
    /**
80
    /**
81
     * Test that basic block data is returned.
81
     * Test that basic block data is returned.
82
     *
82
     *
83
     * @covers ::get_context_data
83
     * @covers ::get_context_data
84
     */
84
     */
85
    public function test_get_context_data_context_block() {
85
    public function test_get_context_data_context_block(): void {
86
        $this->resetAfterTest();
86
        $this->resetAfterTest();
Línea 87... Línea 87...
87
 
87
 
88
        // Setup.
88
        // Setup.
89
        $block = $this->getDataGenerator()->create_block('online_users');
89
        $block = $this->getDataGenerator()->create_block('online_users');
Línea 101... Línea 101...
101
    /**
101
    /**
102
     * Test that a course moudle with completion tracking enabled has the completion data returned.
102
     * Test that a course moudle with completion tracking enabled has the completion data returned.
103
     *
103
     *
104
     * @covers ::get_context_data
104
     * @covers ::get_context_data
105
     */
105
     */
106
    public function test_get_context_data_context_module_completion() {
106
    public function test_get_context_data_context_module_completion(): void {
107
        $this->resetAfterTest();
107
        $this->resetAfterTest();
Línea 108... Línea 108...
108
 
108
 
109
        // Create a module and set completion.
109
        // Create a module and set completion.
110
        $course = $this->getDataGenerator()->create_course(['enablecompletion' => 1]);
110
        $course = $this->getDataGenerator()->create_course(['enablecompletion' => 1]);
Línea 136... Línea 136...
136
    /**
136
    /**
137
     * Test that when there are no files to export for a course module context, nothing is exported.
137
     * Test that when there are no files to export for a course module context, nothing is exported.
138
     *
138
     *
139
     * @covers ::export_context_files
139
     * @covers ::export_context_files
140
     */
140
     */
141
    public function test_export_context_files_context_module_no_files() {
141
    public function test_export_context_files_context_module_no_files(): void {
142
        $this->resetAfterTest();
142
        $this->resetAfterTest();
Línea 143... Línea 143...
143
 
143
 
144
        // Setup.
144
        // Setup.
145
        $course = $this->getDataGenerator()->create_course();
145
        $course = $this->getDataGenerator()->create_course();
Línea 162... Línea 162...
162
    /**
162
    /**
163
     * Test that when there are no files to export for a course context, nothing is exported.
163
     * Test that when there are no files to export for a course context, nothing is exported.
164
     *
164
     *
165
     * @covers ::export_context_files
165
     * @covers ::export_context_files
166
     */
166
     */
167
    public function test_export_context_files_context_course_no_files() {
167
    public function test_export_context_files_context_course_no_files(): void {
168
        $this->resetAfterTest();
168
        $this->resetAfterTest();
Línea 169... Línea 169...
169
 
169
 
170
        // Setup.
170
        // Setup.
171
        $course = $this->getDataGenerator()->create_course();
171
        $course = $this->getDataGenerator()->create_course();
Línea 182... Línea 182...
182
    /**
182
    /**
183
     * Test that when there are files to export for a course context, the files are exported.
183
     * Test that when there are files to export for a course context, the files are exported.
184
     *
184
     *
185
     * @covers ::export_context_files
185
     * @covers ::export_context_files
186
     */
186
     */
187
    public function test_export_context_files_context_course_intro_files() {
187
    public function test_export_context_files_context_course_intro_files(): void {
188
        $this->resetAfterTest();
188
        $this->resetAfterTest();
Línea 189... Línea 189...
189
 
189
 
190
        // Setup.
190
        // Setup.
191
        $course = $this->getDataGenerator()->create_course();
191
        $course = $this->getDataGenerator()->create_course();