You are here

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

@covers ::formAlter

@dataProvider providerFormAlter

File

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

Class

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

Namespace

Drupal\Tests\formdazzle\Unit

Code

public function testFormAlter(array $form, string $form_id, array $expected) {
  Dazzler::formAlter($form, $form_id);
  $this
    ->assertEquals($expected, $form, $this
    ->getTestMessage());
}