Skip to content

test: add env-aware integration flow for sandbox and legacy PFX#4

Merged
vitormattos merged 6 commits intomainfrom
feat/env-aware-integration-tests
Mar 20, 2026
Merged

test: add env-aware integration flow for sandbox and legacy PFX#4
vitormattos merged 6 commits intomainfrom
feat/env-aware-integration-tests

Conversation

@vitormattos
Copy link
Member

@vitormattos vitormattos commented Mar 20, 2026

Summary

  • ignore local env/secret paths to keep credentials out of git
  • add .env.example with sandbox integration variables
  • add env loader helper for optional integration execution
  • add integration test for sandbox mTLS HEAD check
  • add integration test for real PFX signer path with runtime-compatibility skip behavior

Validation

  • docker compose exec -T akaunting.php sh -lc "cd /var/www/html/packages/librecodeoop/nfse-php && composer test:unit"
  • docker compose exec -T akaunting.php sh -lc "cd /var/www/html/packages/librecodeoop/nfse-php && composer test:integration"
  • docker compose exec -T akaunting.php sh -lc "cd /var/www/html/packages/librecodeoop/nfse-php && composer cs:fix"
  • docker compose exec -T akaunting.php sh -lc "cd /var/www/html/packages/librecodeoop/nfse-php && composer psalm"

Notes

  • integration tests are optional and skip cleanly when env/certificate/runtime compatibility is unavailable
  • unit tests remain mock-based and deterministic

Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos vitormattos merged commit 071aa2b into main Mar 20, 2026
10 checks passed
@vitormattos vitormattos deleted the feat/env-aware-integration-tests branch March 20, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant