PHP Class Neos\Flow\Tests\Unit\Cli\CommandManagerTest

Inheritance: extends Neos\Flow\Tests\UnitTestCase
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$commandManager Neos\Flow\Cli\CommandManager
$mockBootstrap Neos\Flow\Core\Bootstrap
$mockReflectionService Neos\Flow\Reflection\ReflectionService

Public Methods

Method Description
getAvailableCommandsReturnsAllAvailableCommands ( )
getCommandByIdentifierAllowsThePackageKeyToOnlyContainTheLastPartOfThePackageNamespaceIfCommandsAreUnambiguous ( )
getCommandByIdentifierReturnsCommandIfIdentifierIsEqual ( )
getCommandByIdentifierThrowsExceptionIfMoreThanOneMatchingCommandWasFound ( )
getCommandByIdentifierThrowsExceptionIfNoMatchingCommandWasFound ( )
getCommandByIdentifierThrowsExceptionIfOnlyPackageKeyIsSpecifiedAndContainsMoreThanOneCommand ( )
getCommandByIdentifierWorksCaseInsensitive ( )
getCommandsByIdentifierReturnsAllCommandsOfTheSpecifiedPackage ( )
getCommandsByIdentifierReturnsAnEmptyArrayIfNoCommandMatches ( )
getShortestIdentifierForCommandAlwaysReturnsShortNameForFlowHelpCommand ( )
getShortestIdentifierForCommandReturnsCompleteCommandIdentifierForCommandsWithTheSameControllerAndCommandName ( )
getShortestIdentifierForCommandReturnsShortestUnambiguousCommandIdentifiers ( )
getShortestIdentifierForCommandReturnsTheCompleteIdentifiersForCustomHelpCommands ( )
setUp ( )

Method Details

getAvailableCommandsReturnsAllAvailableCommands() public method

getCommandByIdentifierAllowsThePackageKeyToOnlyContainTheLastPartOfThePackageNamespaceIfCommandsAreUnambiguous() public method

getCommandByIdentifierReturnsCommandIfIdentifierIsEqual() public method

getCommandByIdentifierThrowsExceptionIfMoreThanOneMatchingCommandWasFound() public method

getCommandByIdentifierThrowsExceptionIfNoMatchingCommandWasFound() public method

getCommandByIdentifierThrowsExceptionIfOnlyPackageKeyIsSpecifiedAndContainsMoreThanOneCommand() public method

getCommandByIdentifierWorksCaseInsensitive() public method

getCommandsByIdentifierReturnsAllCommandsOfTheSpecifiedPackage() public method

getCommandsByIdentifierReturnsAnEmptyArrayIfNoCommandMatches() public method

getShortestIdentifierForCommandAlwaysReturnsShortNameForFlowHelpCommand() public method

getShortestIdentifierForCommandReturnsCompleteCommandIdentifierForCommandsWithTheSameControllerAndCommandName() public method

getShortestIdentifierForCommandReturnsShortestUnambiguousCommandIdentifiers() public method

getShortestIdentifierForCommandReturnsTheCompleteIdentifiersForCustomHelpCommands() public method

setUp() public method

public setUp ( )

Property Details

$commandManager protected property

protected CommandManager,Neos\Flow\Cli $commandManager
return Neos\Flow\Cli\CommandManager

$mockBootstrap protected property

protected Bootstrap,Neos\Flow\Core $mockBootstrap
return Neos\Flow\Core\Bootstrap

$mockReflectionService protected property

protected ReflectionService,Neos\Flow\Reflection $mockReflectionService
return Neos\Flow\Reflection\ReflectionService