‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest:

Public Member Functions

 addedMessagesShouldBeRetrievableAgain (string $dataTypeInSingular, string $dataTypeInPlural)
 
 getMessageShouldNotBeRecursive (string $dataTypeInSingular, string $dataTypeInPlural)
 
 getFirstMessageShouldReturnFirstMessage (string $dataTypeInSingular, string $dataTypeInPlural)
 
 forPropertyShouldReturnSubResult ()
 
 forPropertyWithEmptyStringShouldReturnSelf ()
 
 forPropertyWithNullShouldReturnSelf ()
 
 hasMessagesShouldReturnTrueIfTopLevelObjectHasMessages (string $dataTypeInSingular, string $dataTypeInPlural)
 
 hasMessagesShouldReturnTrueIfSubObjectHasErrors (string $dataTypeInSingular, string $dataTypeInPlural)
 
 hasMessagesShouldReturnFalseIfSubObjectHasNoErrors (string $dataTypeInSingular, string $dataTypeInPlural)
 
 getFlattenedMessagesShouldReturnAllSubMessages (string $dataTypeInSingular, string $dataTypeInPlural)
 
 getFlattenedMessagesShouldNotContainEmptyResults (string $dataTypeInSingular, string $dataTypeInPlural)
 
 mergeShouldMergeTwoResults ()
 
 getFirstReturnsFalseOnEmptyResult ()
 

Static Public Member Functions

static dataTypes ()
 

Protected Member Functions

 setUp ()
 
 getMockMessage (string $type)
 

Protected Attributes

Result $result
 

Detailed Description

Definition at line 26 of file ResultTest.php.

Member Function Documentation

◆ addedMessagesShouldBeRetrievableAgain()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::addedMessagesShouldBeRetrievableAgain ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

◆ dataTypes()

static TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::dataTypes ( )
static

Definition at line 36 of file ResultTest.php.

◆ forPropertyShouldReturnSubResult()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::forPropertyShouldReturnSubResult ( )

Definition at line 86 of file ResultTest.php.

◆ forPropertyWithEmptyStringShouldReturnSelf()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::forPropertyWithEmptyStringShouldReturnSelf ( )

Definition at line 94 of file ResultTest.php.

◆ forPropertyWithNullShouldReturnSelf()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::forPropertyWithNullShouldReturnSelf ( )

Definition at line 101 of file ResultTest.php.

◆ getFirstMessageShouldReturnFirstMessage()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::getFirstMessageShouldReturnFirstMessage ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 74 of file ResultTest.php.

◆ getFirstReturnsFalseOnEmptyResult()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::getFirstReturnsFalseOnEmptyResult ( )

Definition at line 213 of file ResultTest.php.

◆ getFlattenedMessagesShouldNotContainEmptyResults()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::getFlattenedMessagesShouldNotContainEmptyResults ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 166 of file ResultTest.php.

◆ getFlattenedMessagesShouldReturnAllSubMessages()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::getFlattenedMessagesShouldReturnAllSubMessages ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 141 of file ResultTest.php.

◆ getMessageShouldNotBeRecursive()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::getMessageShouldNotBeRecursive ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 63 of file ResultTest.php.

◆ getMockMessage()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::getMockMessage ( string  $type)
protected

◆ hasMessagesShouldReturnFalseIfSubObjectHasNoErrors()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::hasMessagesShouldReturnFalseIfSubObjectHasNoErrors ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 131 of file ResultTest.php.

◆ hasMessagesShouldReturnTrueIfSubObjectHasErrors()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::hasMessagesShouldReturnTrueIfSubObjectHasErrors ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 120 of file ResultTest.php.

◆ hasMessagesShouldReturnTrueIfTopLevelObjectHasMessages()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::hasMessagesShouldReturnTrueIfTopLevelObjectHasMessages ( string  $dataTypeInSingular,
string  $dataTypeInPlural 
)

Definition at line 109 of file ResultTest.php.

◆ mergeShouldMergeTwoResults()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::mergeShouldMergeTwoResults ( )

Definition at line 182 of file ResultTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::setUp ( )
protected

Definition at line 30 of file ResultTest.php.

Member Data Documentation

◆ $result

Result TYPO3\CMS\Extbase\Tests\Unit\Error\ResultTest::$result
protected

Definition at line 28 of file ResultTest.php.