TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ResultTest Class Reference
Inheritance diagram for ResultTest:
UnitTestCase BaseTestCase

Public Member Functions

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

Protected Member Functions

 setUp ()
 
 getMockMessage ($type)
 
- Protected Member Functions inherited from UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from BaseTestCase
 getAccessibleMock ($originalClassName, $methods=[], array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true)
 
 getAccessibleMockForAbstractClass ($originalClassName, array $arguments=[], $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=[])
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name,...$arguments)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix= '')
 

Protected Attributes

 $result
 
- Protected Attributes inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Test case

Definition at line 27 of file ResultTest.php.

Member Function Documentation

addedMessagesShouldBeRetrievableAgain (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 66 of file ResultTest.php.

References ResultTest\getMockMessage().

dataTypes ( )
Returns
array

Definition at line 42 of file ResultTest.php.

forPropertyShouldReturnSubResult ( )
Test:

Definition at line 110 of file ResultTest.php.

forPropertyWithEmptyStringShouldReturnSelf ( )
Test:

Definition at line 120 of file ResultTest.php.

forPropertyWithNullShouldReturnSelf ( )
Test:

Definition at line 129 of file ResultTest.php.

getFirstMessageShouldReturnFirstMessage (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 96 of file ResultTest.php.

getFlattenedMessagesShouldNotContainEmptyResults (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 214 of file ResultTest.php.

getFlattenedMessagesShouldReturnAllSubMessages (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 185 of file ResultTest.php.

getMessageShouldNotBeRecursive (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 81 of file ResultTest.php.

getMockMessage (   $type)
protected
Parameters
string$type
Returns

Definition at line 55 of file ResultTest.php.

Referenced by ResultTest\addedMessagesShouldBeRetrievableAgain().

hasMessagesShouldReturnFalseIfSubObjectHasNoErrors (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 171 of file ResultTest.php.

hasMessagesShouldReturnTrueIfSubObjectHasErrors (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 156 of file ResultTest.php.

hasMessagesShouldReturnTrueIfTopLevelObjectHasMessages (   $dataTypeInSingular,
  $dataTypeInPlural 
)
Test:
dataTypes
Parameters
string$dataTypeInSingular
string$dataTypeInPlural

Definition at line 141 of file ResultTest.php.

mergeShouldMergeTwoResults ( )
Test:

Definition at line 232 of file ResultTest.php.

setUp ( )
protected

Definition at line 34 of file ResultTest.php.

Member Data Documentation

$result
protected

Definition at line 32 of file ResultTest.php.