From 35f6afc58838c1b39d6ddfc6ee43ee5083f77548 Mon Sep 17 00:00:00 2001 From: Marian <42134098+IanDelMar@users.noreply.github.com> Date: Wed, 2 Sep 2026 05:35:00 +0200 Subject: [PATCH] add_settings_field: add param type test --- tests/ParameterTypeTest.php | 5 +++++ tests/data/param/add-settings-field.php | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 tests/data/param/add-settings-field.php diff --git a/tests/ParameterTypeTest.php b/tests/ParameterTypeTest.php index 79c6674..6309311 100644 --- a/tests/ParameterTypeTest.php +++ b/tests/ParameterTypeTest.php @@ -66,6 +66,11 @@ public function testAddMenuPage(): void ); } + public function testAddSettingsField(): void + { + $this->analyse(__DIR__ . '/data/param/add-settings-field.php', []); + } + public function testAddShortcode(): void { $this->analyse( diff --git a/tests/data/param/add-settings-field.php b/tests/data/param/add-settings-field.php new file mode 100644 index 0000000..bfd0bf6 --- /dev/null +++ b/tests/data/param/add-settings-field.php @@ -0,0 +1,10 @@ + Faker::string(), 'class' => Faker::string(), 'foo' => Faker::mixed()]);