From 3f3e62e4fcd10de4a87ef7c0f53ac3407c0b372f Mon Sep 17 00:00:00 2001 From: Rajesh Taneja 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 e9b64ee08de..561c7e13ece 100644 --- a/lib/behat/classes/util.php +++ b/lib/behat/classes/util.php @@ -111,6 +111,9 @@ class behat_util extends testing_util { // Disable some settings that are not wanted on test sites. set_config('noemailever', 1); + // 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();