From 1024f6d1ec1ade7fbd14884f5ce5f8f73ef6ed56 Mon Sep 17 00:00:00 2001 From: Rajesh Taneja <rajesh@moodle.com> Date: Thu, 5 Jan 2017 14:40:16 +0800 Subject: [PATCH] MDL-57531 behat: Set noreplyaddress to valid address noreplyaddress should be a valid address, else it will not be saved. For behat we don't send email, so set it to noreply@example.com, to avoid failing validation on localhost --- lib/behat/classes/util.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/behat/classes/util.php b/lib/behat/classes/util.php index b2118655ed0..09cf9ccd8b9 100644 --- a/lib/behat/classes/util.php +++ b/lib/behat/classes/util.php @@ -117,6 +117,9 @@ class behat_util extends testing_util { // Set editor autosave to high value, so as to avoid unwanted ajax. set_config('autosavefrequency', '604800', 'editor_atto'); + // Set noreplyaddress to an example domain, as it should be valid email address and test site can be a localhost. + set_config('noreplyaddress', 'noreply@example.com'); + // Keeps the current version of database and dataroot. self::store_versions_hash();