From b64c62da278fe1b28c3fec2d6c5a340c75cb860e Mon Sep 17 00:00:00 2001 From: Constantine Nathanson Date: Sun, 19 Nov 2023 19:39:00 +0200 Subject: [PATCH] Fix tests --- tests/Unit/Provisioning/ProvisioningUnitTestCase.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Unit/Provisioning/ProvisioningUnitTestCase.php b/tests/Unit/Provisioning/ProvisioningUnitTestCase.php index 20ccc819..4e2d69ab 100644 --- a/tests/Unit/Provisioning/ProvisioningUnitTestCase.php +++ b/tests/Unit/Provisioning/ProvisioningUnitTestCase.php @@ -42,6 +42,9 @@ public function tearDown() { parent::tearDown(); - putenv(ProvisioningConfiguration::CLOUDINARY_ACCOUNT_URL_ENV_VAR . '=' . $this->accountUrlEnvBackup); + putenv( + ProvisioningConfiguration::CLOUDINARY_ACCOUNT_URL_ENV_VAR . + (! empty($this->accountUrlEnvBackup) ? '=' . $this->accountUrlEnvBackup : "") + ); } }