Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 11
Línea 39... Línea 39...
39
class theme_config_test extends advanced_testcase {
39
class theme_config_test extends advanced_testcase {
40
    /**
40
    /**
41
     * This function will test directives used to serve SVG images to make sure
41
     * This function will test directives used to serve SVG images to make sure
42
     * this are making the right decisions.
42
     * this are making the right decisions.
43
     */
43
     */
44
    public function test_svg_image_use() {
44
    public function test_svg_image_use(): void {
45
        global $CFG;
45
        global $CFG;
Línea 46... Línea 46...
46
 
46
 
Línea 47... Línea 47...
47
        $this->resetAfterTest();
47
        $this->resetAfterTest();
Línea 104... Línea 104...
104
 
104
 
105
    /**
105
    /**
106
     * Confirm that the editor_css_url contains the theme revision and the
106
     * Confirm that the editor_css_url contains the theme revision and the
107
     * theme subrevision if not in theme designer mode.
107
     * theme subrevision if not in theme designer mode.
108
     */
108
     */
109
    public function test_editor_css_url_has_revision_and_subrevision() {
109
    public function test_editor_css_url_has_revision_and_subrevision(): void {
Línea 110... Línea 110...
110
        global $CFG;
110
        global $CFG;
111
 
111
 
112
        $this->resetAfterTest();
112
        $this->resetAfterTest();
Línea 125... Línea 125...
125
    }
125
    }
Línea 126... Línea 126...
126
 
126
 
127
    /**
127
    /**
128
     * Confirm that editor_scss_to_css is correctly compiling for themes with no parent.
128
     * Confirm that editor_scss_to_css is correctly compiling for themes with no parent.
129
     */
129
     */
130
    public function test_editor_scss_to_css_root_theme() {
130
    public function test_editor_scss_to_css_root_theme(): void {
Línea 131... Línea 131...
131
        global $CFG;
131
        global $CFG;
132
 
132
 
133
        $this->resetAfterTest();
133
        $this->resetAfterTest();
Línea 144... Línea 144...
144
    }
144
    }
Línea 145... Línea 145...
145
 
145
 
146
    /**
146
    /**
147
     * Confirm that editor_scss_to_css is compiling for a child theme not overriding its parent's editor SCSS.
147
     * Confirm that editor_scss_to_css is compiling for a child theme not overriding its parent's editor SCSS.
148
     */
148
     */
149
    public function test_editor_scss_to_css_child_theme() {
149
    public function test_editor_scss_to_css_child_theme(): void {
Línea 150... Línea 150...
150
        global $CFG;
150
        global $CFG;
151
 
151
 
152
        $this->resetAfterTest();
152
        $this->resetAfterTest();
Línea 165... Línea 165...
165
    /**
165
    /**
166
     * Test that {@see theme_config::get_all_block_regions()} returns localised list of region names.
166
     * Test that {@see theme_config::get_all_block_regions()} returns localised list of region names.
167
     *
167
     *
168
     * @covers ::get_all_block_regions
168
     * @covers ::get_all_block_regions
169
     */
169
     */
170
    public function test_get_all_block_regions() {
170
    public function test_get_all_block_regions(): void {
171
        $this->resetAfterTest();
171
        $this->resetAfterTest();
Línea 172... Línea 172...
172
 
172
 
173
        $theme = theme_config::load(theme_config::DEFAULT_THEME);
173
        $theme = theme_config::load(theme_config::DEFAULT_THEME);