Commit 690168cb authored by Marina Glancy's avatar Marina Glancy
Browse files

MDL-60108 registration: do not offer registration in behat tests

parent eed0bc36
......@@ -537,6 +537,10 @@ class registration {
* @param string|moodle_url $url
*/
public static function registration_reminder($url) {
if (defined('BEHAT_SITE_RUNNING') && BEHAT_SITE_RUNNING) {
// No redirection during behat runs.
return;
}
if (!has_capability('moodle/site:config', context_system::instance())) {
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment