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

Public Member Functions

 repositoryAndModelClassNames ()
 
 translateModelNameToRepositoryName ($expectedRepositoryName, $modelName, $dummyValidatorName)
 
 translateRepositoryNameToModelName ($repositoryName, $expectedModelName, $dummyValidatorName)
 
 translateModelNameToValidatorName ($repositoryName, $modelName, $expectedValidatorName)
 
 controllerObjectNamesAndMatches ()
 
 explodeObjectControllerName ($controllerObjectName, $expectedMatches)
 

Additional Inherited Members

- 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 inherited from UnitTestCase
 $backupGlobalsBlacklist = ['TYPO3_LOADED_EXT']
 
 $testFilesToDelete = []
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Testcase for class

Definition at line 20 of file ClassNamingUtilityTest.php.

Member Function Documentation

controllerObjectNamesAndMatches ( )

DataProvider for explodeObjectControllerName

Returns
array

Definition at line 149 of file ClassNamingUtilityTest.php.

explodeObjectControllerName (   $controllerObjectName,
  $expectedMatches 
)

controllerObjectNamesAndMatches

Parameters
string$controllerObjectName
array$expectedMatches
Test:

Definition at line 244 of file ClassNamingUtilityTest.php.

References ClassNamingUtility\explodeObjectControllerName().

repositoryAndModelClassNames ( )

DataProvider for translateModelNameToRepositoryName and translateRepositoryNameToModelName and translateModelNameToValidatorName

Returns
array

Definition at line 29 of file ClassNamingUtilityTest.php.

translateModelNameToRepositoryName (   $expectedRepositoryName,
  $modelName,
  $dummyValidatorName 
)

repositoryAndModelClassNames

Parameters
string$expectedRepositoryName
string$modelName
string$dummyValidatorNamenot needed here - just a dummy to be able to cleanly use the same dataprovider
Test:

Definition at line 112 of file ClassNamingUtilityTest.php.

References ClassNamingUtility\translateModelNameToRepositoryName().

translateModelNameToValidatorName (   $repositoryName,
  $modelName,
  $expectedValidatorName 
)

repositoryAndModelClassNames

Parameters
string$repositoryName
string$modelName
string$expectedValidatorName
Test:

Definition at line 138 of file ClassNamingUtilityTest.php.

References ClassNamingUtility\translateModelNameToValidatorName().

translateRepositoryNameToModelName (   $repositoryName,
  $expectedModelName,
  $dummyValidatorName 
)

repositoryAndModelClassNames

Parameters
string$repositoryName
string$expectedModelName
string$dummyValidatorNamenot needed here - just a dummy to be able to use the same dataprovider
Test:

Definition at line 125 of file ClassNamingUtilityTest.php.

References ClassNamingUtility\translateRepositoryNameToModelName().