From 68bbac40538fd4b22b5009e5836cfd5a6e83f1a9 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Wed, 30 Sep 2026 19:03:11 -0500 Subject: [PATCH 1/2] fix: make getDependencies() public Every other Webware config provider exposes getDependencies() so tests and consumers can read a provider dependency block without invoking the whole provider. This one was private. Signed-off-by: Joey Smith --- src/WebwareProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebwareProvider.php b/src/WebwareProvider.php index 2033105..f1612e3 100644 --- a/src/WebwareProvider.php +++ b/src/WebwareProvider.php @@ -53,7 +53,7 @@ final class WebwareProvider public const string BACKUP_SCHEMA_KEY = 'backup_schema'; /** @return array */ - private function getDependencies(): array + public function getDependencies(): array { return [ 'factories' => [ From 77db61ecd095e7fe6ae863e41cdd976c8cc8b1d1 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Wed, 30 Sep 2026 19:06:49 -0500 Subject: [PATCH 2/2] test: call getDependencies() directly Now that it is public, Infection mutates it to protected, and only a direct call kills that mutant. Signed-off-by: Joey Smith --- test/unit/WebwareProviderTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/unit/WebwareProviderTest.php b/test/unit/WebwareProviderTest.php index 57e2ab8..c75dd25 100644 --- a/test/unit/WebwareProviderTest.php +++ b/test/unit/WebwareProviderTest.php @@ -30,6 +30,15 @@ #[CoversMethod(WebwareProvider::class, 'getSchemaConfig')] final class WebwareProviderTest extends TestCase { + #[Test] + public function getDependenciesRegistersTheSchemaFactory(): void + { + self::assertSame( + ['factories' => [SchemaFactory::class => SchemaFactoryFactory::class]], + new WebwareProvider()->getDependencies(), + ); + } + #[Test] public function registersTheSchemaFactoryAndItsConfiguration(): void {