FormBuilderUnitTest
extends TestCase
in package
Tags
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
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 —getFieldsAlgorithms()
Method constructs FieldsAlgorithms object
protected
getFieldsAlgorithms() : FieldsAlgorithms
Return values
FieldsAlgorithms —Fields algorithms object
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