From 301cbe3a30188e4b3e631fca4eda7588db20c0f9 Mon Sep 17 00:00:00 2001 From: David Monllao Date: Wed, 26 Sep 2012 17:00:28 +0800 Subject: [PATCH] MDL-37046 behat: Behat admin tool skeleton --- admin/tool/behat/index.php | 35 +++++++++++++++++++++++++ admin/tool/behat/lang/en/tool_behat.php | 26 ++++++++++++++++++ admin/tool/behat/settings.php | 31 ++++++++++++++++++++++ admin/tool/behat/version.php | 29 ++++++++++++++++++++ 4 files changed, 121 insertions(+) create mode 100644 admin/tool/behat/index.php create mode 100644 admin/tool/behat/lang/en/tool_behat.php create mode 100644 admin/tool/behat/settings.php create mode 100644 admin/tool/behat/version.php diff --git a/admin/tool/behat/index.php b/admin/tool/behat/index.php new file mode 100644 index 0000000000000..da7f7aa8e4908 --- /dev/null +++ b/admin/tool/behat/index.php @@ -0,0 +1,35 @@ +. + +/** + * Behat info page + * + * @package tool_behat + * @copyright 2012 David Monllaó + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +require(__DIR__ . '/../../../config.php'); +require_once($CFG->libdir.'/adminlib.php'); + +admin_externalpage_setup('toolbehat'); + +echo $OUTPUT->header(); +echo $OUTPUT->heading(get_string('pluginname', 'tool_behat')); +echo $OUTPUT->box_start(); +echo get_string('installationinfo', 'tool_behat'); +echo $OUTPUT->box_end(); +echo $OUTPUT->footer(); diff --git a/admin/tool/behat/lang/en/tool_behat.php b/admin/tool/behat/lang/en/tool_behat.php new file mode 100644 index 0000000000000..4627cc2f1b6a2 --- /dev/null +++ b/admin/tool/behat/lang/en/tool_behat.php @@ -0,0 +1,26 @@ +. + +/** + * Strings for tool_behat + * + * @package tool_behat + * @copyright 2012 David Monllaó + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +$string['pluginname'] = 'Behat'; +$string['installationinfo'] = ''; \ No newline at end of file diff --git a/admin/tool/behat/settings.php b/admin/tool/behat/settings.php new file mode 100644 index 0000000000000..5e1982b0ac534 --- /dev/null +++ b/admin/tool/behat/settings.php @@ -0,0 +1,31 @@ +. + +/** + * PHPunit integration + * + * @package tool_behat + * @copyright 2012 David Monllaó + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + + +defined('MOODLE_INTERNAL') || die; + +if ($hassiteconfig) { + $url = $CFG->wwwroot . '/' . $CFG->admin . '/tool/behat/index.php'; + $ADMIN->add('development', new admin_externalpage('toolbehat', get_string('pluginname', 'tool_behat'), $url)); +} diff --git a/admin/tool/behat/version.php b/admin/tool/behat/version.php new file mode 100644 index 0000000000000..2308e91394128 --- /dev/null +++ b/admin/tool/behat/version.php @@ -0,0 +1,29 @@ +. + +/** + * tool_behat version info + * + * @package tool_behat + * @copyright 2012 David Monllaó + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ + +defined('MOODLE_INTERNAL') || die(); + +$plugin->version = 2012092600; // The current plugin version (Date: YYYYMMDDXX) +$plugin->requires = 2012061700; // Requires this Moodle version +$plugin->component = 'tool_behat'; // Full name of the plugin (used for diagnostics)