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>
This commit is contained in:
Vitor Mattos 2025-12-15 17:20:15 -03:00
parent 249f0837b0
commit 65ac52b309
No known key found for this signature in database
GPG key ID: 6FECE2AD4809003A

View file

@ -43,6 +43,7 @@ final class AEngineHandlerTest extends \OCA\Libresign\Tests\Unit\TestCase {
$this->appConfig->deleteKey(Application::APP_ID, 'certificate_engine');
$this->appConfig->deleteKey(Application::APP_ID, 'identify_methods');
$this->appConfig->deleteKey(Application::APP_ID, 'config_path');
}
private function getInstance(): OpenSslHandler {