mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-78036' of https://github.com/stronk7/moodle
This commit is contained in:
commit
78c71f408a
@ -102,7 +102,7 @@ Options:
|
||||
Example from Moodle root directory:
|
||||
\$ php admin/tool/behat/cli/init.php --parallel=2
|
||||
|
||||
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
|
||||
More info in https://moodledev.io/general/development/tools/behat/running
|
||||
";
|
||||
|
||||
if (!empty($options['help'])) {
|
||||
|
@ -87,7 +87,7 @@ Options:
|
||||
Example from Moodle root directory:
|
||||
\$ php admin/tool/behat/cli/run.php --tags=\"@javascript\"
|
||||
|
||||
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
|
||||
More info in https://moodledev.io/general/development/tools/behat/running
|
||||
";
|
||||
|
||||
if (!empty($options['help'])) {
|
||||
|
@ -94,7 +94,7 @@ Options:
|
||||
Example from Moodle root directory:
|
||||
\$ php admin/tool/behat/cli/util.php --enable --parallel=4
|
||||
|
||||
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
|
||||
More info in https://moodledev.io/general/development/tools/behat/running
|
||||
";
|
||||
|
||||
if (!empty($options['help'])) {
|
||||
|
@ -89,7 +89,7 @@ Options:
|
||||
Example from Moodle root directory:
|
||||
\$ php admin/tool/behat/cli/util_single_run.php --enable
|
||||
|
||||
More info in http://docs.moodle.org/dev/Acceptance_testing#Running_tests
|
||||
More info in https://moodledev.io/general/development/tools/behat/running
|
||||
";
|
||||
|
||||
if (!empty($options['help'])) {
|
||||
|
@ -30,7 +30,7 @@ $string['errordataroot'] = '$CFG->behat_dataroot is not set or is invalid.';
|
||||
$string['errorsetconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot need to be set in config.php.';
|
||||
$string['erroruniqueconfig'] = '$CFG->behat_dataroot, $CFG->behat_prefix and $CFG->behat_wwwroot values need to be different than $CFG->dataroot, $CFG->prefix, $CFG->wwwroot, $CFG->phpunit_dataroot and $CFG->phpunit_prefix values.<br/>Or, if $CFG->behat_prefix is the same, $CFG->behat_dbname or $CFG->behat_dbhost need to be different from $CFG->phpunit_dbname and $CFG->phpunit_dbhost and from $CFG->dbname and $CFG->dbhost.';
|
||||
$string['fieldvalueargument'] = 'Field value arguments';
|
||||
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value. There are many field types, including simple ones like checkboxes, selects or textareas, or complex ones like date selectors. See the dev documentation <a href="https://docs.moodle.org/dev/Acceptance_testing" target="_blank">Acceptance_testing</a> for details of expected field values.';
|
||||
$string['fieldvalueargument_help'] = 'This argument should be completed by a field value. There are many field types, including simple ones like checkboxes, selects or textareas, or complex ones like date selectors. See the dev documentation <a href="https://moodledev.io/general/development/tools/behat" target="_blank">Acceptance_testing</a> for details of expected field values.';
|
||||
$string['giveninfo'] = 'Given. Processes to set up the environment';
|
||||
$string['infoheading'] = 'Info';
|
||||
$string['installinfo'] = 'Read {$a} for installation and tests execution info';
|
||||
|
@ -184,9 +184,10 @@ class tool_behat_renderer extends plugin_renderer_base {
|
||||
// Info.
|
||||
$installurl = behat_command::DOCS_URL;
|
||||
$installlink = html_writer::tag('a', $installurl, array('href' => $installurl, 'target' => '_blank'));
|
||||
$writetestsurl = 'https://docs.moodle.org/dev/Writing acceptance tests';
|
||||
$writetestsurl = 'https://moodledev.io/general/development/tools/behat/writing';
|
||||
$writetestslink = html_writer::tag('a', $writetestsurl, array('href' => $writetestsurl, 'target' => '_blank'));
|
||||
$writestepsurl = 'https://docs.moodle.org/dev/Writing_new_acceptance_test_step_definitions';
|
||||
$writestepsurl = 'https://moodledev.io/general/development/tools/behat/writing#' .
|
||||
'writing-new-acceptance-test-step-definitions';
|
||||
$writestepslink = html_writer::tag('a', $writestepsurl, array('href' => $writestepsurl, 'target' => '_blank'));
|
||||
$infos = array(
|
||||
get_string('installinfo', 'tool_behat', $installlink),
|
||||
|
@ -24,6 +24,6 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$plugin->version = 2023042400; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->version = 2023060600; // The current plugin version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2023041800; // Requires this Moodle version.
|
||||
$plugin->component = 'tool_behat'; // Full name of the plugin (used for diagnostics)
|
||||
|
@ -40,7 +40,7 @@ class behat_command {
|
||||
/**
|
||||
* Docs url
|
||||
*/
|
||||
const DOCS_URL = 'https://docs.moodle.org/dev/Running_acceptance_test';
|
||||
const DOCS_URL = 'https://moodledev.io/general/development/tools/behat';
|
||||
|
||||
/**
|
||||
* Ensures the behat dir exists in moodledata
|
||||
|
@ -60,7 +60,7 @@ TPL;
|
||||
$search = $this->searchcriterion;
|
||||
|
||||
// If there is a specific type (given, when or then) required.
|
||||
if (strpos($search, '&&') !== false) {
|
||||
if ($search && strpos($search, '&&') !== false) {
|
||||
list($search, $type) = explode('&&', $search);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user