Skip to content

test: declare the classes these tests use, so the PHPUnit cells stop failing - #646

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/declare-used-classes-in-connection-report-tests
Sep 16, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
fix/declare-used-classes-in-connection-report-tests

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

What this changes

Adds the missing @uses annotations to the connection report tests, which is the last thing keeping the PHPUnit cells red on development.

Why the cells were red when the log said OK

The suite sets failOnRisky="true" together with beStrictAboutCoverageMetadata="true". A test that executes a class named in neither @covers nor @uses is reported risky, and PHPUnit then exits non-zero. It still prints OK, but there were issues! first, so the log reads like a pass while the cell is red. That is worth knowing, because the summary line is not the thing to trust here.

Nothing about the tests changes. These classes were already being exercised; only the declaration was missing.

Verified locally

  • The touched tests pass
  • php -l and phpcs clean on every touched file
  • composer check:strict run once
  • Each @uses name was resolved through the app autoloader, so none of them is a typo that would silently fail to suppress the finding

The risky check itself needs a coverage driver, and this machine has neither xdebug nor pcov, so the count going to zero is the one thing I could not reproduce locally. CI is the arbiter for that.

🤖 Generated with Claude Code

…failing

The suite sets failOnRisky with beStrictAboutCoverageMetadata, so a test that
touches a class named in neither @Covers nor @uses is reported risky and the
run exits non-zero. PHPUnit still prints "OK, but there were issues!", which
is why this reads as a pass in the log while the cell is red.

These classes were already being exercised; only the annotation was missing.
@rubenvdlinde
rubenvdlinde merged commit 02386fc into development Sep 16, 2026
36 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/launchpad @ 3649355

Check PHP Vue Security License Tests
lint
phpcs
phpmd
psalm
phpstan
phpmetrics
eslint
stylelint
build
check-manifest
format
check-schema-l10n
composer ✅ 104/104
npm ✅ 534/534
app:check-code ⏭️
info.xml
REUSE
lockfile sync
PHPUnit
Newman
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it on any branch from the Actions tab, or locally with npx playwright test.
Hydra gates

Quality workflow — 2026-09-16 07:25 UTC

Download the full PDF report from the workflow artifacts.

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