You are here

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

@covers ::addSuggestions

@dataProvider providerAddSuggestions

File

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

Class

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

Namespace

Drupal\Tests\formdazzle\Unit

Code

public function testAddSuggestions(array $element, string $form_id, string $form_id_suggestion, array $expected) {
  Dazzler::addSuggestions($element, $form_id, $form_id_suggestion);
  $this
    ->assertEquals($expected, $element, $this
    ->getTestMessage());
}