Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 37... Línea 37...
37
    }
37
    }
Línea 38... Línea 38...
38
 
38
 
39
    /**
39
    /**
40
     * Test that duplicating a page preserves the lang setting.
40
     * Test that duplicating a page preserves the lang setting.
41
     */
41
     */
42
    public function test_duplicating_page_preserves_lang() {
42
    public function test_duplicating_page_preserves_lang(): void {
43
        $this->resetAfterTest();
43
        $this->resetAfterTest();
Línea 44... Línea 44...
44
        $this->setAdminUser();
44
        $this->setAdminUser();
45
 
45
 
Línea 55... Línea 55...
55
 
55
 
56
        // Verify the settings of the duplicated activity.
56
        // Verify the settings of the duplicated activity.
57
        $this->assertEquals('en', $newpagecm->lang);
57
        $this->assertEquals('en', $newpagecm->lang);
Línea 58... Línea 58...
58
    }
58
    }
59
 
59
 
60
    public function test_activity_forced_lang_not_restored_without_capability() {
60
    public function test_activity_forced_lang_not_restored_without_capability(): void {
61
        global $DB;
61
        global $DB;
Línea 62... Línea 62...
62
        $this->resetAfterTest();
62
        $this->resetAfterTest();