fair-plugin/tests/http
Chuck Adams 252e5461f3
fix: remove vacuous and redundant tests (audit items 1-6)
Immediate items from test quality audit:

1. Delete SampleTest.php (tested PHP truthiness, not production code)
2. GetPackagesTest: remove double-quote duplicate assertion, replace
   brittle array-key-existence check with empty-plugins assertion
3. AvatarHttpTest: remove two should_replace_url tests (duplicates
   of ShouldReplaceUrlTest in unit layer)
4. PickArtifactByLangTest: remove test_should_fire_filter_hook
   (tested WordPress core apply_filters behavior)
5. DefaultRepoHttpTest: remove test_pre_http_request_filter_is_registered
   (tested bootstrap, redundant with every other test)
6. UpdaterTest: replace ReflectionProperty reset_registry with
   Updater::reset() (method already existed in production code)

After: 261 tests, 485 assertions (was 262/489).
Single-site, multisite, and HTTP suites pass.

Signed-off-by: Chuck Adams <chaz@chaz.works>
2026-06-09 19:52:56 -06:00
..
tests fix: remove vacuous and redundant tests (audit items 1-6) 2026-06-09 19:52:56 -06:00
bootstrap.php Phase 10: add HTTP test harness + tests 2026-06-09 13:38:36 -06:00