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

Public Member Functions

 commandIdentifiers ()
 
 constructRendersACommandIdentifierByTheGivenControllerAndCommandName ($controllerClassName, $commandName, $expectedCommandIdentifier)
 
 invalidCommandClassNames ()
 
 constructThrowsExceptionIfCommandClassNameIsInvalid ($controllerClassName)
 
 hasArgumentsReturnsFalseIfCommandExpectsNoArguments ()
 
 hasArgumentsReturnsTrueIfCommandExpectsArguments ()
 
 getArgumentDefinitionsReturnsEmptyArrayIfCommandExpectsNoArguments ()
 
 getArgumentDefinitionsReturnsArrayOfArgumentDefinitionIfCommandExpectsArguments ()
 

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

 $command
 
 $mockMethodReflection
 
 $mockObjectManager
 
- 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 CommandTest.php.

Member Function Documentation

commandIdentifiers ( )
Returns
array

Definition at line 59 of file CommandTest.php.

constructRendersACommandIdentifierByTheGivenControllerAndCommandName (   $controllerClassName,
  $commandName,
  $expectedCommandIdentifier 
)
Test:
commandIdentifiers
Parameters
string$controllerClassName
string$commandName
string$expectedCommandIdentifier

Definition at line 75 of file CommandTest.php.

References CommandTest\$command.

constructThrowsExceptionIfCommandClassNameIsInvalid (   $controllerClassName)
Test:
invalidCommandClassNames
Parameters
string$controllerClassName

Definition at line 98 of file CommandTest.php.

getArgumentDefinitionsReturnsArrayOfArgumentDefinitionIfCommandExpectsArguments ( )
Test:

Definition at line 136 of file CommandTest.php.

getArgumentDefinitionsReturnsEmptyArrayIfCommandExpectsNoArguments ( )
Test:

Definition at line 127 of file CommandTest.php.

hasArgumentsReturnsFalseIfCommandExpectsNoArguments ( )
Test:

Definition at line 108 of file CommandTest.php.

hasArgumentsReturnsTrueIfCommandExpectsArguments ( )
Test:

Definition at line 117 of file CommandTest.php.

invalidCommandClassNames ( )
Returns
array

Definition at line 84 of file CommandTest.php.

setUp ( )
protected
Returns
void

Definition at line 47 of file CommandTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$command
protected
$mockMethodReflection
protected

Definition at line 37 of file CommandTest.php.

$mockObjectManager
protected

Definition at line 42 of file CommandTest.php.