You are here

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

@covers ::traverse

@dataProvider providerTraverse

File

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

Class

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

Namespace

Drupal\Tests\formdazzle\Unit

Code

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