Skip to content

fix: fix unit tests and FHIR service method signature mismatches#3

Open
dac-ai-worker wants to merge 1 commit into
mainfrom
ai/fix-unit-tests
Open

fix: fix unit tests and FHIR service method signature mismatches#3
dac-ai-worker wants to merge 1 commit into
mainfrom
ai/fix-unit-tests

Conversation

@dac-ai-worker
Copy link
Copy Markdown
Contributor

Summary

  • Separate unit and integration test suites — composer test runs unit tests without a database, composer test-integration requires OpenEMR Docker
  • Add tests/bootstrap-unit.php that loads only autoloaders (module + parent) without globals.php
  • Fix LibraryAssetFHIRResourceServiceTest extending Monolog\Test\TestCase instead of PHPUnit\Framework\TestCase
  • Fix createOpenEMRSearchParameters signature in 4 FHIR service classes to match parent ResourceServiceSearchTrait (add array, ?string, : array type hints)
  • Bump to v0.11.0

Test plan

  • composer test passes (4 tests, 16 assertions, 1 incomplete)
  • composer test-integration runs correctly in Docker environment
  • Verify FHIR endpoints still work after signature fixes

🤖 Generated with Claude Code

Separate unit and integration test suites — unit tests run without a
database via bootstrap-unit.php (autoloaders only), integration tests
still require OpenEMR Docker. Fix LibraryAssetFHIRResourceServiceTest
extending Monolog\Test\TestCase instead of PHPUnit\Framework\TestCase.
Fix createOpenEMRSearchParameters signature in 4 FHIR service classes
to match parent ResourceServiceSearchTrait. Bump to v0.11.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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