Documentation

FormBuilderUnitTest extends TestCase
in package

Tags
psalm-suppress

PropertyNotSetInConstructor

Table of Contents

creationFormWidthDataProvider()  : array<string|int, mixed>
Testing data for creation form tests
testConstructorNoFormTitle()  : void
Testing constructor with no form title
testCreationFormWith()  : void
Testing creation form
testUpdatingFormWithHeader()  : void
Testing updating form with header
testUpdatingFormWithNoHeader()  : void
Testing updating form with no header
getFieldsAlgorithms()  : FieldsAlgorithms
Method constructs FieldsAlgorithms object
getJson()  : array<string|int, mixed>
Method returns testing data
formHeader()  : void
Setting on and off the form title flag.
updatingFormTestCommonPart()  : string
Common part of the tests testUpdatingFormWithNoHeader and testUpdatingFormWithHeader

Methods

creationFormWidthDataProvider()

Testing data for creation form tests

public creationFormWidthDataProvider() : array<string|int, mixed>
Return values
array<string|int, mixed>

testing data

testConstructorNoFormTitle()

Testing constructor with no form title

public testConstructorNoFormTitle() : void
Return values
void

testCreationFormWith()

Testing creation form

public testCreationFormWith(array<string|int, mixed> $layout) : void
Parameters
$layout : array<string|int, mixed>

layout config

Tags
dataProvider

creationFormWidthDataProvider

psalm-suppress

RedundantCondition

Return values
void

testUpdatingFormWithHeader()

Testing updating form with header

public testUpdatingFormWithHeader() : void
Return values
void

testUpdatingFormWithNoHeader()

Testing updating form with no header

public testUpdatingFormWithNoHeader() : void
Return values
void

getJson()

Method returns testing data

protected getJson(string $name) : array<string|int, mixed>
Parameters
$name : string

File name

Return values
array<string|int, mixed>

Testing data

formHeader()

Setting on and off the form title flag.

private formHeader(bool $flag) : void
Parameters
$flag : bool
Return values
void

updatingFormTestCommonPart()

Common part of the tests testUpdatingFormWithNoHeader and testUpdatingFormWithHeader

private updatingFormTestCommonPart() : string
Return values
string

form content

Search results