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\UnitCode
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());
}