From 294ae220ea4292390384c24ac9f43e6c4bfa4fd8 Mon Sep 17 00:00:00 2001 From: costdev Date: Thu, 19 Dec 2024 18:18:31 +0000 Subject: [PATCH] Code Coverage: Ignore `Admin_Settings::add_settings_field_callback()`. This should be tested with E2E tests instead. --- includes/class-admin-settings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/class-admin-settings.php b/includes/class-admin-settings.php index 414b604..b075cc3 100644 --- a/includes/class-admin-settings.php +++ b/includes/class-admin-settings.php @@ -506,6 +506,8 @@ public function register_settings() { /** * The Fields API which any CMS should have in its core but something we dont, hence this ugly hack. * + * @codeCoverageIgnore Test with E2E tests instead. + * * @param array $args The Field Parameters. * * @return void Echos the Field HTML.