From: Tim Otten Date: Fri, 18 Nov 2022 01:12:48 +0000 (-0800) Subject: dev/core#3979 - Add test to reproduce error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ba2c89ef0fc54be4e6d79c9be9fcef09908b9486;p=civicrm-core.git dev/core#3979 - Add test to reproduce error Note: On current D7, this doesn't actually reproduce the message because `bootstrap.inc` redirects it ``` function _drupal_bootstrap_configuration() { // Set the Drupal custom error handler. set_error_handler('_drupal_error_handler'); set_exception_handler('_drupal_exception_handler'); ``` But if you comment out `set_error_handler()`, then it does. And I presume it would on D8+... --- diff --git a/tests/phpunit/E2E/Api4/LocaleTest.php b/tests/phpunit/E2E/Api4/LocaleTest.php new file mode 100644 index 0000000000..9fa21cd6bf --- /dev/null +++ b/tests/phpunit/E2E/Api4/LocaleTest.php @@ -0,0 +1,23 @@ + 25, + 'language' => 'en_US', + ]); + $this->assertTrue(count($contacts) > 0); + } + +}