‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Tests\Functional\Form\FormTestService Class Reference

Public Member Functions

array createNewRecordForm (string $table, array $defaults=[])
 
bool formHtmlContainsField (string $fieldName, string $formHtml)
 

Detailed Description

Service class for handling recurring tasks in tests.

Definition at line 26 of file FormTestService.php.

Member Function Documentation

◆ createNewRecordForm()

array TYPO3\CMS\Backend\Tests\Functional\Form\FormTestService::createNewRecordForm ( string  $table,
array  $defaults = [] 
)

Creates an outerWrapContainer node for a new record of the given table.

Parameters
string$table
array$defaults
Returns
‪array

Definition at line 35 of file FormTestService.php.

◆ formHtmlContainsField()

bool TYPO3\CMS\Backend\Tests\Functional\Form\FormTestService::formHtmlContainsField ( string  $fieldName,
string  $formHtml 
)

Checks if the form field with the given name exists in the given form HTML.

Parameters
string$fieldName
string$formHtml
Returns
‪bool

Definition at line 60 of file FormTestService.php.