From 0ba4fa53c1992405a8ba7afedb76e02e8d06b577 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 19 Oct 2022 20:26:11 +0800 Subject: [PATCH] MDL-75985 behat: Return newline character for \n Somehow part of this commit was lost during the push and/or squash. --- lib/tests/behat/behat_general.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tests/behat/behat_general.php b/lib/tests/behat/behat_general.php index b2184d10ec4..21b2edb351e 100644 --- a/lib/tests/behat/behat_general.php +++ b/lib/tests/behat/behat_general.php @@ -1780,8 +1780,8 @@ EOF; // Without this, keys will behave differently depending on the browser. $keylist = array_map(function($key): string { switch ($key) { - case '\n': - behat_keys::ENTER; + case "\n": + return behat_keys::ENTER; default: return $key; }