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

Public Member Functions

 cliAccessWithExtensionControllerAndActionNameBuildsCorrectRequest ()
 
 ifCommandCantBeResolvedTheHelpScreenIsShown ()
 
 argumentWithValueSeparatedByEqualSignBuildsCorrectRequest ()
 
 cliAccessWithExtensionControllerActionAndArgumentsBuildsCorrectRequest ()
 
 checkIfCLIAccesWithPackageControllerActionAndArgumentsToleratesSpaces ()
 
 CLIAccesWithShortArgumentsBuildsCorrectRequest ()
 
 CLIAccesWithArgumentsWithAndWithoutValuesBuildsCorrectRequest ()
 
 insteadOfNamedArgumentsTheArgumentsCanBePassedUnnamedInTheCorrectOrder ()
 
 argumentsAreDetectedAfterOptions ()
 
 exceedingArgumentsMayBeSpecified ()
 
 ifNamedArgumentsAreUsedAllRequiredArgumentsMustBeNamed ()
 
 ifUnnamedArgumentsAreUsedAllRequiredArgumentsMustBeUnnamed ()
 
 booleanOptionsAreConsideredEvenIfAnUnnamedArgumentFollows ()
 
 booleanOptionsCanHaveOnlyCertainValuesIfTheValueIsAssignedWithoutEqualSign ()
 

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

 $requestBuilder
 
 $request
 
 $mockObjectManager
 
 $mockCommand
 
 $mockCommandManager
 
 $mockReflectionService
 
 $mockConfigurationManager
 
- 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 28 of file Cli/RequestBuilderTest.php.

Member Function Documentation

argumentsAreDetectedAfterOptions ( )
Test:

Definition at line 273 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

argumentWithValueSeparatedByEqualSignBuildsCorrectRequest ( )
Test:

Definition at line 124 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

booleanOptionsAreConsideredEvenIfAnUnnamedArgumentFollows ( )
Test:

Definition at line 338 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

booleanOptionsCanHaveOnlyCertainValuesIfTheValueIsAssignedWithoutEqualSign ( )
Test:

Definition at line 354 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

checkIfCLIAccesWithPackageControllerActionAndArgumentsToleratesSpaces ( )

Checks if a CLI request specifying some "console style" (–my-argument =value) arguments with spaces between name and value results in the expected request object

Test:

Definition at line 159 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

cliAccessWithExtensionControllerActionAndArgumentsBuildsCorrectRequest ( )

Checks if a CLI request specifying some "console style" (–my-argument=value) arguments results in the expected request object

Test:

Definition at line 140 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

cliAccessWithExtensionControllerAndActionNameBuildsCorrectRequest ( )

Checks if a CLI request specifying a package, controller and action name results in the expected request object

Test:

Definition at line 92 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

CLIAccesWithArgumentsWithAndWithoutValuesBuildsCorrectRequest ( )

Checks if a CLI request specifying some mixed "console style" (-c or –my-argument -f=value) arguments with and without values results in the expected request object

Test:

Definition at line 207 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

CLIAccesWithShortArgumentsBuildsCorrectRequest ( )

Checks if a CLI request specifying some short "console style" (-c value or -c=value or -c = value) arguments results in the expected request object

Test:

Definition at line 184 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

exceedingArgumentsMayBeSpecified ( )
Test:

Definition at line 292 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

ifCommandCantBeResolvedTheHelpScreenIsShown ( )
ifNamedArgumentsAreUsedAllRequiredArgumentsMustBeNamed ( )
Test:

Definition at line 308 of file Cli/RequestBuilderTest.php.

ifUnnamedArgumentsAreUsedAllRequiredArgumentsMustBeUnnamed ( )
Test:

Definition at line 323 of file Cli/RequestBuilderTest.php.

insteadOfNamedArgumentsTheArgumentsCanBePassedUnnamedInTheCorrectOrder ( )
Test:

Definition at line 255 of file Cli/RequestBuilderTest.php.

References RequestBuilderTest\$request.

setUp ( )
protected

Sets up this test case

Definition at line 68 of file Cli/RequestBuilderTest.php.

References BaseTestCase\getAccessibleMock().

Member Data Documentation

$mockCommand
protected

Definition at line 48 of file Cli/RequestBuilderTest.php.

$mockCommandManager
protected
$mockConfigurationManager
protected

Definition at line 63 of file Cli/RequestBuilderTest.php.

$mockObjectManager
protected

Definition at line 43 of file Cli/RequestBuilderTest.php.

$mockReflectionService
protected

Definition at line 58 of file Cli/RequestBuilderTest.php.

$requestBuilder
protected

Definition at line 33 of file Cli/RequestBuilderTest.php.