TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest:
TYPO3\CMS\Core\Tests\UnitTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

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

Protected Attributes

 $command
 
 $mockMethodReflection
 
 $mockObjectManager
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 $backupGlobalsBlacklist = array('TYPO3_LOADED_EXT')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\UnitTestCase
 tearDown ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 getAccessibleMock ( $originalClassName, array $methods=array(), array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 getAccessibleMockForAbstractClass ( $originalClassName, array $arguments=array(), $mockClassName='', $callOriginalConstructor=TRUE, $callOriginalClone=TRUE, $callAutoload=TRUE)
 
 buildAccessibleProxy ($className)
 
 callInaccessibleMethod ($object, $name)
 
 inject ($target, $name, $dependency)
 
 getUniqueId ($prefix='')
 

Detailed Description

Test case

Definition at line 27 of file CommandTest.php.

Member Function Documentation

◆ commandIdentifiers()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::commandIdentifiers ( )
Returns
array
Author
Robert Lemke rober.nosp@m.t@ty.nosp@m.po3.o.nosp@m.rg

Definition at line 59 of file CommandTest.php.

◆ constructRendersACommandIdentifierByTheGivenControllerAndCommandName()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::constructRendersACommandIdentifierByTheGivenControllerAndCommandName (   $controllerClassName,
  $commandName,
  $expectedCommandIdentifier 
)
Test:
commandIdentifiers
Author
Robert Lemke rober.nosp@m.t@ty.nosp@m.po3.o.nosp@m.rg
Parameters
string$controllerClassName
string$commandName
string$expectedCommandIdentifier

Definition at line 74 of file CommandTest.php.

References TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest\$command, and $controllerClassName.

◆ constructThrowsExceptionIfCommandClassNameIsInvalid()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::constructThrowsExceptionIfCommandClassNameIsInvalid (   $controllerClassName)
Test:
invalidCommandClassNames
Parameters
string$controllerClassName

Definition at line 98 of file CommandTest.php.

References $controllerClassName.

◆ getArgumentDefinitionsReturnsArrayOfArgumentDefinitionIfCommandExpectsArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::getArgumentDefinitionsReturnsArrayOfArgumentDefinitionIfCommandExpectsArguments ( )
Test:
Author
Bastian Waidelich basti.nosp@m.an@t.nosp@m.ypo3..nosp@m.org

Definition at line 134 of file CommandTest.php.

◆ getArgumentDefinitionsReturnsEmptyArrayIfCommandExpectsNoArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::getArgumentDefinitionsReturnsEmptyArrayIfCommandExpectsNoArguments ( )
Test:
Author
Bastian Waidelich basti.nosp@m.an@t.nosp@m.ypo3..nosp@m.org

Definition at line 125 of file CommandTest.php.

◆ hasArgumentsReturnsFalseIfCommandExpectsNoArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::hasArgumentsReturnsFalseIfCommandExpectsNoArguments ( )
Test:
Author
Bastian Waidelich basti.nosp@m.an@t.nosp@m.ypo3..nosp@m.org

Definition at line 106 of file CommandTest.php.

◆ hasArgumentsReturnsTrueIfCommandExpectsArguments()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::hasArgumentsReturnsTrueIfCommandExpectsArguments ( )
Test:
Author
Bastian Waidelich basti.nosp@m.an@t.nosp@m.ypo3..nosp@m.org

Definition at line 115 of file CommandTest.php.

◆ invalidCommandClassNames()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::invalidCommandClassNames ( )
Returns
array

Definition at line 82 of file CommandTest.php.

◆ setUp()

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::setUp ( )
Returns
void

Definition at line 47 of file CommandTest.php.

References TYPO3\CMS\Core\Tests\BaseTestCase\getAccessibleMock().

Member Data Documentation

◆ $command

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::$command
protected

◆ $mockMethodReflection

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::$mockMethodReflection
protected

Definition at line 37 of file CommandTest.php.

◆ $mockObjectManager

TYPO3\CMS\Extbase\Tests\Unit\Mvc\Cli\CommandTest::$mockObjectManager
protected

Definition at line 42 of file CommandTest.php.