You are here

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

@covers ::preRenderForm

@dataProvider providerRepeatedPreRenderFormCalls

File

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

Class

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

Namespace

Drupal\Tests\formdazzle\Unit

Code

public function testRepeatedPreRenderFormCalls(array $form, array $expected) {
  $actual = Dazzler::preRenderForm($form);

  // Repeated calls of pre-render should have no effect.
  $actual = Dazzler::preRenderForm($actual);
  $this
    ->assertEquals($expected, $actual, $this
    ->getTestMessage());
}