X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/tests/behat
home
/
cbholdings
/
pasukulu
/
lib
/
tests
/
behat
/
📁
..
📄
action_menu.feature
(1.11 KB)
📄
action_modal.feature
(2.06 KB)
📄
alpha_chooser.feature
(21.59 KB)
📄
behat_accessibility.php
(7.72 KB)
📄
behat_action_menu.php
(8.14 KB)
📄
behat_data_generators.php
(9.71 KB)
📄
behat_deprecated.php
(2.1 KB)
📄
behat_filters.php
(2.95 KB)
📄
behat_forms.php
(32.45 KB)
📄
behat_general.php
(97.03 KB)
📄
behat_hooks.php
(33.02 KB)
📄
behat_moodlenet.php
(2.03 KB)
📄
behat_navigation.php
(61.41 KB)
📄
behat_permissions.php
(12.62 KB)
📄
behat_transformations.php
(5.56 KB)
📄
datetime_any.feature
(4.24 KB)
📄
enabledashboard.feature
(846 B)
📄
expand_single_fieldset.feature
(697 B)
📄
largeforms.feature
(2.67 KB)
📄
locking.feature
(8.55 KB)
📄
min_max_version.feature
(1018 B)
📄
moodlenet_outbound.feature
(3.98 KB)
📄
permissionmanager.feature
(3.62 KB)
📄
readonlyform.feature
(1.7 KB)
📄
securelayout.feature
(1.68 KB)
📄
showuseridentity.feature
(4.26 KB)
📄
switch_editing_mode.feature
(2.72 KB)
📄
timezone.feature
(431 B)
📄
userfeedback.feature
(2.18 KB)
Editing: behat_moodlenet.php
<?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/>. // NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. use Moodle\BehatExtension\Exception\SkippedException; require_once(__DIR__ . '/../../behat/behat_base.php'); /** * Steps definitions related to MoodleNet. * * @package core * @category test * @copyright 2023 Huong Nguyen <huongnv13@gmail.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class behat_moodlenet extends behat_base { /** * Check that the TEST_MOODLENET_MOCK_SERVER is defined, so we can connect to the mock server. * * @Given /^a MoodleNet mock server is configured$/ */ public function mock_is_configured(): void { if (!defined('TEST_MOODLENET_MOCK_SERVER')) { throw new SkippedException( 'The TEST_MOODLENET_MOCK_SERVER constant must be defined to run MoodleNet tests' ); } } /** * Change the service base url to the TEST_MOODLENET_MOCK_SERVER url. * * @Given /^I change the MoodleNet field "(?P<field_string>(?:[^"]|\\")*)" to mock server$/ * @param string $field Field name */ public function change_service_base_url_to_mock_url(string $field): void { $field = behat_field_manager::get_form_field_from_label($field, $this); $field->set_value(TEST_MOODLENET_MOCK_SERVER); } }
Upload File
Create Folder