From f5d6edd4be50e6498b9201e18bebafdb029e2edf Mon Sep 17 00:00:00 2001 From: Dimitri Sitchet Tomkeu Date: Thu, 20 Mar 2025 18:02:06 +0100 Subject: [PATCH] fix test check phpini opcache --- spec/system/framework/Security/CheckPhpIni.spec.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/system/framework/Security/CheckPhpIni.spec.php b/spec/system/framework/Security/CheckPhpIni.spec.php index e5b89d4..e617416 100644 --- a/spec/system/framework/Security/CheckPhpIni.spec.php +++ b/spec/system/framework/Security/CheckPhpIni.spec.php @@ -15,10 +15,11 @@ describe('Security / CheckPhpIni', function (): void { beforeAll(function(): void { - $ini = ini_get_all(); + $ini = ini_get_all(); + $default = ['global_value' => 'disabled', 'local_value' => 'disabled']; - $this->display_errors = $ini['display_errors'] ?? ['global_value' => 'disabled', 'local_value' => 'disabled']; - $this->opcache = $ini['opcache'] ?? ['global_value' => 'disabled', 'local_value' => 'disabled']; + $this->display_errors = $ini['display_errors'] ?? $default; + $this->opcache = $ini['opcache.save_comments'] ?? $default; }); it('Check ini', function (): void {