mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
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:
parent
249f0837b0
commit
65ac52b309
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue