fair-plugin/tests/integration
Chuck Adams a180991fb3
refactor: move pipeline-mock success tests from unit to integration (#14)
Removed from PipelineWPTest (unit):
- SearchByDidTest::test_should_return_plugin_result_on_success
- SearchByDidTest::seed_full_pipeline()
- AddPackageToReleaseCacheTest::test_should_add_release_to_cache
- AddPackageToReleaseCacheTest::test_should_retain_existing_releases
- AddPackageToReleaseCacheTest::seed_pipeline()

These tested the FULL pipeline (DID doc → service → HTTP fetch →
metadata → release) using pre_http_request mock filters inside
unit tests. A metadata schema change would silently break them.

Added to DidResolutionIntegrationTest (integration):
- test_search_by_did_returns_plugin_result
- test_add_package_to_release_cache_populates_cache

Both run against the real Docker mock server, so a schema change
produces a genuine integration failure, not a mock-data mismatch.

Unit tests kept: edge cases that don't need HTTP (empty DID, non-DID
search, wrong action, pipeline failure propagation).

After: 280 unit tests (511 assertions), 19 integration (56 assertions).
All suites pass.

Signed-off-by: Chuck Adams <chaz@chaz.works>
2026-06-09 20:35:09 -06:00
..
tests refactor: move pipeline-mock success tests from unit to integration (#14) 2026-06-09 20:35:09 -06:00
bootstrap.php feat: complete remaining active testing gaps 2026-06-09 19:15:38 -06:00