mirror of
https://ghproxy.net/https://github.com/fairpm/fair-plugin.git
synced 2026-08-09 13:40:26 +08:00
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> |
||
|---|---|---|
| .. | ||
| tests | ||
| bootstrap.php | ||