From 88809166d22bdbde5b82bebe656d71e4bd1dad20 Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Wed, 16 Sep 2026 09:15:36 +0200 Subject: [PATCH] test: declare the classes these tests use, so the PHPUnit cells stop 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. --- tests/Unit/Service/Connection/ConnectionReporterTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Unit/Service/Connection/ConnectionReporterTest.php b/tests/Unit/Service/Connection/ConnectionReporterTest.php index c5554055..ede84e45 100644 --- a/tests/Unit/Service/Connection/ConnectionReporterTest.php +++ b/tests/Unit/Service/Connection/ConnectionReporterTest.php @@ -44,6 +44,7 @@ * Unit tests for ConnectionReporter. * * @covers \OCA\LaunchPad\Service\Connection\ConnectionReporter + * @uses \OCA\LaunchPad\Service\Connection\ConnectionObservations */ class ConnectionReporterTest extends TestCase { use ConnectionReporterFixture;