‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData Class Reference

Public Member Functions

 __construct (private array $formData)
 
 with (string $identifier, string $value)
 
 withNoPrefix (string $identifier, string $value)
 
 without (string $identifier)
 
 withoutNoPrefix (string $identifier)
 
 withChash (bool $withChash)
 
 toPostRequest (InternalRequest $request)
 
 toGetRequest (InternalRequest $request, bool $withPostData=true)
 
 toArray ()
 
 getFormMarkup ()
 
 getHoneypotId ()
 
 getSessionId ()
 

Private Member Functions

 getQueryStructure ()
 
 getPostStructure ()
 

Private Attributes

array $with = []
 
array $withNoPrefix = []
 
array $without = []
 
array $withoutNoPrefix = []
 
bool $withChash = true
 

Detailed Description

Used to hold and prepare data for form testing purpose.

See also
‪\TYPO3\CMS\Form\Tests\Functional\RequestHandling\RequestHandlingTest

Definition at line 27 of file FormData.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::__construct ( private array  $formData)

Definition at line 35 of file FormData.php.

Member Function Documentation

◆ getFormMarkup()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::getFormMarkup ( )

Definition at line 105 of file FormData.php.

◆ getHoneypotId()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::getHoneypotId ( )

Definition at line 110 of file FormData.php.

◆ getPostStructure()

◆ getQueryStructure()

◆ getSessionId()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::getSessionId ( )

Definition at line 120 of file FormData.php.

◆ toArray()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::toArray ( )

Definition at line 100 of file FormData.php.

◆ toGetRequest()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::toGetRequest ( InternalRequest  $request,
bool  $withPostData = true 
)

◆ toPostRequest()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::toPostRequest ( InternalRequest  $request)

◆ with()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::with ( string  $identifier,
string  $value 
)

◆ withChash()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::withChash ( bool  $withChash)

◆ withNoPrefix()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::withNoPrefix ( string  $identifier,
string  $value 
)

◆ without()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::without ( string  $identifier)

◆ withoutNoPrefix()

TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::withoutNoPrefix ( string  $identifier)

Member Data Documentation

◆ $with

array TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::$with = []
private

Definition at line 29 of file FormData.php.

◆ $withChash

bool TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::$withChash = true
private

◆ $withNoPrefix

array TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::$withNoPrefix = []
private

Definition at line 30 of file FormData.php.

◆ $without

array TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::$without = []
private

Definition at line 31 of file FormData.php.

◆ $withoutNoPrefix

array TYPO3\CMS\Form\Tests\Functional\Framework\FormHandling\FormData::$withoutNoPrefix = []
private

Definition at line 32 of file FormData.php.