Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/ParameterTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
10 changes: 10 additions & 0 deletions tests/data/param/add-settings-field.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php // phpcs:disable

declare(strict_types=1);

use PhpStubs\WordPress\Core\Tests\Faker;

use function add_settings_field;

// $args unsealed
add_settings_field(Faker::string(), Faker::string(), Faker::callable(), Faker::string(), Faker::string(), ['label_for' => Faker::string(), 'class' => Faker::string(), 'foo' => Faker::mixed()]);
Loading