From ba2c89ef0fc54be4e6d79c9be9fcef09908b9486 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Thu, 17 Nov 2022 17:12:48 -0800 Subject: [PATCH] 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+... --- tests/phpunit/E2E/Api4/LocaleTest.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 tests/phpunit/E2E/Api4/LocaleTest.php 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); + } + +} -- 2.25.1