Documentation

ListBuilderUnitTest extends ListBuilderTestsBase
in package

Tags
psalm-suppress

PropertyNotSetInConstructor

Table of Contents

commonBehaviourDataProvider()  : array<string|int, mixed>
Testing data provider
simpleListingFormDataProvider()  : array<string|int, mixed>
Data provider for the testSimpleListingForm
testCommonBehaviour()  : void
Testing method
testSimpleListingForm()  : void
Testing listing form
runAssertions()  : void
Method runs string assertions
setUp()  : void
This method is called before each test.
assertStringContainsStrings()  : void
Asserting that string contains substrings

Methods

commonBehaviourDataProvider()

Testing data provider

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

testing data

simpleListingFormDataProvider()

Data provider for the testSimpleListingForm

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

test data

testCommonBehaviour()

Testing method

public testCommonBehaviour(callable $setup, callable $assertions) : void
Parameters
$setup : callable

setup method

$assertions : callable

assertions method

Tags
dataProvider

commonBehaviourDataProvider

Return values
void

testSimpleListingForm()

Testing listing form

public testSimpleListingForm(array<string|int, mixed> $records, array<string|int, mixed> $asserts) : void
Parameters
$records : array<string|int, mixed>

records to display

$asserts : array<string|int, mixed>

asserts

Tags
dataProvider

simpleListingFormDataProvider

Return values
void

runAssertions()

Method runs string assertions

protected runAssertions(array<string|int, mixed> $asserts, string $content) : void
Parameters
$asserts : array<string|int, mixed>

asserts

$content : string

content to assert

Return values
void

setUp()

This method is called before each test.

protected setUp() : void
Return values
void

assertStringContainsStrings()

Asserting that string contains substrings

private assertStringContainsStrings(array<string|int, mixed> $needles, string $haystack) : void
Parameters
$needles : array<string|int, mixed>
$haystack : string
Return values
void

Search results

    Яндекс.Метрика