Proyectos de Subversion Moodle

Rev

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

Rev 1 Rev 1441
Línea 117... Línea 117...
117
        set_config('noemailever', 1);
117
        set_config('noemailever', 1);
Línea 118... Línea 118...
118
 
118
 
119
        // Enable web cron.
119
        // Enable web cron.
Línea 120... Línea -...
120
        set_config('cronclionly', 0);
-
 
121
 
-
 
122
        // Set editor autosave to high value, so as to avoid unwanted ajax.
-
 
123
        set_config('autosavefrequency', '604800', 'editor_atto');
120
        set_config('cronclionly', 0);
124
 
121
 
Línea 125... Línea 122...
125
        // Set noreplyaddress to an example domain, as it should be valid email address and test site can be a localhost.
122
        // Set noreplyaddress to an example domain, as it should be valid email address and test site can be a localhost.
126
        set_config('noreplyaddress', 'noreply@example.com');
123
        set_config('noreplyaddress', 'noreply@example.com');
Línea 322... Línea 319...
322
    /**
319
    /**
323
     * Returns the status of the behat test environment
320
     * Returns the status of the behat test environment
324
     *
321
     *
325
     * @return int Error code
322
     * @return int Error code
326
     */
323
     */
327
    public static function get_behat_status() {
324
    public static function get_behat_status(): int {
328
 
-
 
329
        if (!defined('BEHAT_UTIL')) {
325
        if (!defined('BEHAT_UTIL')) {
330
            throw new coding_exception('This method can be only used by Behat CLI tool');
326
            throw new coding_exception('This method can be only used by Behat CLI tool');
331
        }
327
        }
Línea 332... Línea 328...
332
 
328
 
333
        // Checks the behat set up and the PHP version, returning an error code if something went wrong.
329
        // Checks the behat set up and the PHP version, returning an error code if something went wrong.
-
 
330
        $errorcode = behat_command::behat_setup_problem();
-
 
331
 
334
        if ($errorcode = behat_command::behat_setup_problem()) {
332
        if ($errorcode !== 0) {
335
            return $errorcode;
333
            return $errorcode;
Línea 336... Línea 334...
336
        }
334
        }
337
 
335
 
-
 
336
        // Check that test environment is correctly set up, stops execution.
-
 
337
        self::test_environment_problem();
338
        // Check that test environment is correctly set up, stops execution.
338
 
Línea 339... Línea 339...
339
        self::test_environment_problem();
339
        return $errorcode;
340
    }
340
    }
341
 
341
 
Línea 517... Línea 517...
517
    public static function get_site_info() {
517
    public static function get_site_info() {
518
        $siteinfo = parent::get_site_info();
518
        $siteinfo = parent::get_site_info();
Línea 519... Línea 519...
519
 
519
 
520
        $accessibility = empty(behat_config_manager::get_behat_run_config_value('axe')) ? 'No' : 'Yes';
520
        $accessibility = empty(behat_config_manager::get_behat_run_config_value('axe')) ? 'No' : 'Yes';
-
 
521
        $scssdeprecations = empty(behat_config_manager::get_behat_run_config_value('scss-deprecations')) ? 'No' : 'Yes';
Línea 521... Línea 522...
521
        $scssdeprecations = empty(behat_config_manager::get_behat_run_config_value('scss-deprecations')) ? 'No' : 'Yes';
522
        $icondeprecations = empty(behat_config_manager::get_behat_run_config_value('no-icon-deprecations')) ? 'Yes' : 'No';
522
 
523
 
523
        $siteinfo .= <<<EOF
524
        $siteinfo .= <<<EOF
524
Run optional tests:
525
Run optional tests:
-
 
526
- Accessibility: {$accessibility}
Línea 525... Línea 527...
525
- Accessibility: {$accessibility}
527
- SCSS deprecations: {$scssdeprecations}
Línea 526... Línea 528...
526
- SCSS deprecations: {$scssdeprecations}
528
- Icon deprecations: {$icondeprecations}
527
 
529