diff --git a/tests/autonomy_test.php b/tests/autonomy_test.php index 701e7ec..cb3e000 100644 --- a/tests/autonomy_test.php +++ b/tests/autonomy_test.php @@ -24,10 +24,12 @@ namespace local_webhooks; +#[\PHPUnit\Framework\Attributes\CoversFunction('local_webhooks_get_event_choices')] /** * Runtime autonomy tests. + * + * @covers ::local_webhooks_get_event_choices */ -#[\PHPUnit\Framework\Attributes\CoversFunction('local_webhooks_get_event_choices')] final class autonomy_test extends \advanced_testcase { /** * Event choices keep their storage format and custom event names are strings. diff --git a/tests/handler_test.php b/tests/handler_test.php index 1756d55..169f94a 100644 --- a/tests/handler_test.php +++ b/tests/handler_test.php @@ -24,10 +24,12 @@ namespace local_webhooks; +#[\PHPUnit\Framework\Attributes\CoversClass(handler::class)] /** * Event handler tests. + * + * @covers \local_webhooks\handler */ -#[\PHPUnit\Framework\Attributes\CoversClass(handler::class)] final class handler_test extends \advanced_testcase { /** * The legacy observer does not inspect or deliver events. diff --git a/tests/legacy_ui_test.php b/tests/legacy_ui_test.php index b355e05..f97f269 100644 --- a/tests/legacy_ui_test.php +++ b/tests/legacy_ui_test.php @@ -24,10 +24,12 @@ namespace local_webhooks; +#[\PHPUnit\Framework\Attributes\CoversNothing] /** * Legacy management surface tests. + * + * @coversNothing */ -#[\PHPUnit\Framework\Attributes\CoversNothing] final class legacy_ui_test extends \advanced_testcase { /** * Legacy management is unavailable without leaving dead links or write helpers.