• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apsolu / local_apsolu / 18468445848

13 Oct 2025 02:06PM UTC coverage: 9.418% (+0.2%) from 9.224%
18468445848

push

github

jboulen
refactor(core): applique des corrections pour le nouveau coding style de Moodle

69 of 875 new or added lines in 51 files covered. (7.89%)

47 existing lines in 11 files now uncovered.

557 of 5914 relevant lines covered (9.42%)

0.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/classes/task/setup_behat_data.php
1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16

17
namespace local_apsolu\task;
18

19
use local_apsolu\tests\behat\dataset_provider;
20

21
/**
22
 * Classe représentant la tâche permettant d'initier un jeu de données pour les tests Behat.
23
 *
24
 * @package    local_apsolu
25
 * @copyright  2025 Université Rennes 2
26
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
27
 */
28
class setup_behat_data extends \core\task\adhoc_task {
29
    /**
30
     * Retourne le nom de la tâche (information utilisée dans les pages d'administration).
31
     *
32
     * @return string
33
     */
34
    public function get_name() {
35
        return get_string('setup_behat_data', 'local_apsolu');
×
36
    }
37

38
    /**
39
     * Execute la tâche.
40
     *
41
     * @throws coding_exception Lève une exception lorsque la tâche n'est pas exécute par Behat.
42
     *
43
     * @return void
44
     */
45
    public function execute() {
46
        global $CFG;
×
47

48
        if (defined('BEHAT_UTIL') === false) {
×
49
            throw new coding_exception('This task can be only used by Behat CLI tool');
×
50
        }
51

NEW
52
        require_once($CFG->dirroot . '/local/apsolu/tests/behat/dataset_provider.php');
×
53

54
        dataset_provider::execute();
×
55
    }
56
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc