From c91e36bb8fb9631ae4ec27b0b533f72eb685ed62 Mon Sep 17 00:00:00 2001 From: Colin Stewart <79332690+costdev@users.noreply.github.com> Date: Thu, 19 Dec 2024 18:27:36 +0000 Subject: [PATCH] Code Coverage: Ignore `Admin_Settings::add_settings_field_callback()`. (#251) 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.