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

Public Member Functions

 registerRenderMethodArgumentsThrowsExceptionOnMissingType (array $arguments, $expectsException=false)
 
 callRenderMethodBehavesAsExpected (array $arguments, $expectsException=false)
 
 getCallRenderMethodTestValues ()
 
 prepareArgumentsCallsInitializeArguments ()
 
 prepareArgumentsRegistersAnnotationBasedArgumentsWithDescriptionIfDebugModeIsEnabled ()
 
 validateArgumentsCallsPrepareArguments ()
 
 validateArgumentsAcceptsAllObjectsImplemtingArrayAccessAsAnArray ()
 
 validateArgumentsCallsTheRightValidators ()
 
 validateArgumentsCallsTheRightValidatorsAndThrowsExceptionIfValidationIsWrong ()
 
 initializeArgumentsAndRenderCallsTheCorrectSequenceOfMethods ()
 
 setRenderingContextShouldSetInnerVariables ()
 

Protected Member Functions

 setUp ()
 
- 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

 $mockReflectionService
 
 $fixtureMethodParameters
 
 $fixtureMethodTags
 
- 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 AbstractViewHelperTest.php.

Member Function Documentation

callRenderMethodBehavesAsExpected ( array  $arguments,
  $expectsException = false 
)
Test:
getCallRenderMethodTestValues
Parameters
array$arguments
bool$expectsException

Definition at line 110 of file AbstractViewHelperTest.php.

References BaseTestCase\callInaccessibleMethod(), and BaseTestCase\getAccessibleMock().

getCallRenderMethodTestValues ( )
Returns
array

Definition at line 168 of file AbstractViewHelperTest.php.

initializeArgumentsAndRenderCallsTheCorrectSequenceOfMethods ( )
Test:

Definition at line 279 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

prepareArgumentsCallsInitializeArguments ( )
Test:

Definition at line 180 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

prepareArgumentsRegistersAnnotationBasedArgumentsWithDescriptionIfDebugModeIsEnabled ( )
Test:

Definition at line 193 of file AbstractViewHelperTest.php.

registerRenderMethodArgumentsThrowsExceptionOnMissingType ( array  $arguments,
  $expectsException = false 
)
Test:
getCallRenderMethodTestValues
Parameters
array$arguments
bool$expectsException

Definition at line 82 of file AbstractViewHelperTest.php.

References BaseTestCase\callInaccessibleMethod(), and BaseTestCase\getAccessibleMock().

setRenderingContextShouldSetInnerVariables ( )
Test:

Definition at line 294 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

setUp ( )
protected

Definition at line 71 of file AbstractViewHelperTest.php.

validateArgumentsAcceptsAllObjectsImplemtingArrayAccessAsAnArray ( )
Test:

Definition at line 230 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

validateArgumentsCallsPrepareArguments ( )
Test:

Definition at line 217 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

validateArgumentsCallsTheRightValidators ( )
Test:

Definition at line 242 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

validateArgumentsCallsTheRightValidatorsAndThrowsExceptionIfValidationIsWrong ( )
Test:

Definition at line 259 of file AbstractViewHelperTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$fixtureMethodParameters
protected
Initial value:
= [
'param1' => [
'position' => 0

Definition at line 37 of file AbstractViewHelperTest.php.

$fixtureMethodTags
protected
Initial value:
= [
'param' => [
'integer $param1 P1 Stuff',
'array $param2 P2 Stuff',
'string $param3 P3 Stuff'
]
]

Definition at line 63 of file AbstractViewHelperTest.php.

$mockReflectionService
protected

Definition at line 32 of file AbstractViewHelperTest.php.