MDL-80215 core: Use correct behat constant

This commit is contained in:
Andrew Nicols 2023-11-22 09:00:35 +08:00
parent b58d1fd4e2
commit 7b7b618b96
No known key found for this signature in database
GPG Key ID: 6D1E3157C8CFBF14

View File

@ -359,7 +359,7 @@ function get_whoops(): ?\Whoops\Run {
return null;
}
if (defined('BEHAT_TEST') && BEHAT_TEST) {
if (defined('BEHAT_SITE_RUNNING') && BEHAT_SITE_RUNNING) {
return null;
}