Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 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
// phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
18
 
19
require_once(__DIR__ . '/../../../lib/behat/behat_base.php');
20
require_once(__DIR__ . '/../../tests/communication_test_helper_trait.php');
21
 
22
/**
23
 * Class behat_communication for behat custom steps and configuration for communication api.
24
 *
25
 * @package    core_communication
26
 * @category   test
27
 * @copyright  2023 Safat Shahin <safat.shahin@moodle.com>
28
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
29
 */
30
class behat_communication extends \behat_base {
31
    use \core_communication\communication_test_helper_trait;
32
 
33
    /**
34
     * Configure and enable communication experimental feature.
35
     *
36
     * @Given /^I enable communication experimental feature$/
37
     */
38
    public function enable_communication_experimental_feature(): void {
39
        $this->setup_communication_configs();
40
    }
41
 
42
    /**
43
     * Disable communication experimental feature.
44
     *
45
     * @Given /^I disable communication experimental feature$/
46
     */
47
    public function disable_communication_experimental_feature(): void {
48
        $this->disable_communication_configs();
49
    }
50
}