Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 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
require_once(__DIR__ . '/../../../../../lib/behat/behat_deprecated_base.php');
18
 
19
/**
20
 * Deprecated behat steps for qbank_comment
21
 *
22
 * @package   qbank_comment
23
 * @copyright 2024 onwards Catalyst IT EU {@link https://catalyst-eu.net}
24
 * @author    Mark Johnson <mark.johnson@catalyst-eu.net>
25
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
26
 */
27
class behat_qbank_comment_deprecated extends behat_deprecated_base {
28
    /**
29
     * Looks for the appropriate hyperlink comment count in the column.
30
     *
31
     * @Then I should see :arg1 on the comments column
32
     * @param string $linkdata
33
     * @deprecated Since Moodle 5.0 MDL-79122 in favour of the "qbank_comment > Comment count link" named selector.
34
     * @todo Final removal in Moodle 6.0 MDL-82413.
35
     */
36
    public function i_should_see_on_the_column(string $linkdata): void {
37
        $this->deprecated_message("Use '\"{$linkdata}\" \"qbank_comment > Comment count link\" should exist'");
38
        $this->execute('behat_general::should_exist', [$linkdata, 'qbank_comment > Comment count link']);
39
    }
40
 
41
    /**
42
     * Looks for a table, then looks for a row that contains the given text.
43
     * Once it finds the right row, it clicks a link in that row.
44
     *
45
     * @When I click :arg1 on the row on the comments column
46
     * @param string $linkname
47
     * @deprecated Since Moodle 5.0 MDL-79122 in favour of the "qbank_comment > Comment count link" named selector.
48
     * @todo Final removal in Moodle 6.0 MDL-82413.
49
     */
50
    public function i_click_on_the_row_containing(string $linkname): void {
51
        $this->deprecated_message("Use 'I click on \"{$linkname}\" \"qbank_comment > Comment count link\"'");
52
        $this->execute('behat_general::i_click_on', [$linkname, 'qbank_comment > Comment count link']);
53
    }
54
}