2 namespace typo3\sysext\backend\Tests\Unit\Form\Element;
17 use TYPO3\CMS\Core\Tests\UnitTestCase;
31 'itemFormElName' =>
'foo',
32 'itemFormElValue' =>
'bar'
35 $subject = $this->getAccessibleMock(InputHiddenElement::class, array(
'dummy'), array(),
'',
false);
36 $subject->_set(
'data', $data);
37 $result = $subject->render();
38 $additionalHiddenFieldsResult = array_pop($result[
'additionalHiddenFields']);
39 $this->assertContains(
'name="foo"', $additionalHiddenFieldsResult);
40 $this->assertContains(
'value="bar"', $additionalHiddenFieldsResult);
41 $this->assertContains(
'type="hidden"', $additionalHiddenFieldsResult);