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

Public Member Functions

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

Detailed Description

Service class for handling recurring tasks in tests.

Definition at line 31 of file FormTestService.php.

Member Function Documentation

◆ createNewRecordForm()

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

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

Definition at line 36 of file FormTestService.php.

References TYPO3\CMS\Core\Core\SystemEnvironmentBuilder\REQUESTTYPE_BE.

◆ formHtmlContainsField()

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.

Definition at line 60 of file FormTestService.php.