From 201cdf8fd71078ddd7fa24b0b33593974c344529 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 8 Mar 2021 16:07:51 +1300 Subject: [PATCH] Fix apiv4 test sloppiness Why would we exclude e-notices from causing test fails - I suspect this canary-killer got added a long time back & no-one noticed --- tests/phpunit/api/v4/UnitTestCase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/api/v4/UnitTestCase.php b/tests/phpunit/api/v4/UnitTestCase.php index 97c777c3b4..067417b1d8 100644 --- a/tests/phpunit/api/v4/UnitTestCase.php +++ b/tests/phpunit/api/v4/UnitTestCase.php @@ -41,7 +41,7 @@ class UnitTestCase extends \PHPUnit\Framework\TestCase implements HeadlessInterf */ public function __construct($name = NULL, array $data = [], $dataName = '') { parent::__construct($name, $data, $dataName); - error_reporting(E_ALL & ~E_NOTICE); + error_reporting(E_ALL); } public function setUpHeadless() { -- 2.25.1