Skip to content

Commit 65ac52b

Browse files
committed
test: clean up config_path in AEngineHandlerTest setUp
Prevent test state pollution by ensuring config_path is deleted in setUp(). This fixes failures in OpenSslHandlerTest where the temporary config path from AEngineHandlerTest was persisting through the shared appConfig mock, causing tests that expect properly formatted PKI directory names to fail. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 249f083 commit 65ac52b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/php/Unit/Handler/CertificateEngine/AEngineHandlerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function setUp(): void {
4343

4444
$this->appConfig->deleteKey(Application::APP_ID, 'certificate_engine');
4545
$this->appConfig->deleteKey(Application::APP_ID, 'identify_methods');
46+
$this->appConfig->deleteKey(Application::APP_ID, 'config_path');
4647
}
4748

4849
private function getInstance(): OpenSslHandler {

0 commit comments

Comments
 (0)