You are here

public function DazzlerTest::testGetFormIdSuggestion in Formdazzle! 2.x

@covers ::getFormIdSuggestion

@dataProvider providerGetFormIdSuggestion

File

tests/src/Unit/DazzlerTest.php, line 391

Class

DazzlerTest
@coversDefaultClass \Drupal\formdazzle\Dazzler @group formdazzle

Namespace

Drupal\Tests\formdazzle\Unit

Code

public function testGetFormIdSuggestion(array $form, string $form_id, string $expected) {
  $actual = Dazzler::getFormIdSuggestion($form, $form_id);
  $this
    ->assertEquals($expected, $actual, $this
    ->getTestMessage());
}