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; }