TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase:
TYPO3\CMS\Core\Tests\FunctionalTestCase TYPO3\CMS\Core\Tests\BaseTestCase

Public Member Functions

 setUp ()
 
 tearDown ()
 
- Public Member Functions inherited from TYPO3\CMS\Core\Tests\FunctionalTestCase
 setUp ()
 

Public Attributes

const VALUE_LanguageId = 2
 
const TABLE_Pages = 'pages'
 
const COMMAND_Copy = 'copy'
 
const COMMAND_Localize = 'localize'
 
const COMMAND_Delete = 'delete'
 
const PROPERTY_LocalizeReferencesAtParentLocalization = 'localizeReferencesAtParentLocalization'
 
const BEHAVIOUR_LocalizeChildrenAtParentLocalization = 'localizeChildrenAtParentLocalization'
 
const BEHAVIOUR_LocalizationMode = 'localizationMode'
 

Protected Member Functions

 setExpectedLogEntries ($count)
 
 getElementStructureForCommands ($command, $value, array $tables)
 
 simulateCommandByStructure (array $elements)
 
 simulateCommand ($command, $value, array $tables)
 
 getLastLogEntryMessage ()
 
 getElementsByItemArray (array $itemArray)
 
 getAllRecords ($table, $indexField='uid')
 
 getTcaFieldConfiguration ($tableName, $fieldName)
 
 setTcaFieldConfiguration ($tableName, $fieldName, $propertyName, $value)
 
 setTcaFieldConfigurationBehaviour ($tableName, $fieldName, $behaviourName, $value)
 
 getFieldValue ($tableName, $id, $fieldName)
 
 getLoadDbGroup ()
 
 getTceMain ()
 
 assertNoLogEntries ()
 
 assertSortingOrder ($table, $field, $expectedOrderOfIds, $message)
 
 assertReferenceIndex (array $assertions, $expected=TRUE)
 
 assertChildren ($parentTableName, $parentId, $parentFieldName, array $assertions, $mmTable='', $expected=TRUE)
 
 getLogEntries ()
 
 executeAssertionOnElements (array $assertion, array $elements)
 
 elementToString ($element)
 
 combine ()
 
 getBackendUser ()
 
- Protected Member Functions inherited from TYPO3\CMS\Core\Tests\FunctionalTestCase
 getInstanceIdentifier ()
 
 getInstancePath ()
 
 getDatabaseConnection ()
 
 setUpFrontendRootPage ($pageId, array $typoScriptFiles=array())
 
 getFrontendResponse ($pageId, $languageId=0, $backendUserId=0, $workspaceId=0, $failOnFailure=TRUE)
 
- 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='')
 

Protected Attributes

 $testExtensionsToLoad = array('typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial')
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\FunctionalTestCase
 $coreExtensionsToLoad = array()
 
 $testExtensionsToLoad = array()
 
 $pathsToLinkInTestInstance = array()
 
 $configurationToUseInTestInstance = array()
 
 $additionalFoldersToCreate = array()
 
- Protected Attributes inherited from TYPO3\CMS\Core\Tests\BaseTestCase
 $backupGlobals = TRUE
 
 $backupStaticAttributes = FALSE
 

Private Attributes

 $expectedLogEntries = 0
 

Detailed Description

Generic test helpers.

Definition at line 24 of file AbstractTestCase.php.

Member Function Documentation

◆ assertChildren()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::assertChildren (   $parentTableName,
  $parentId,
  $parentFieldName,
array  $assertions,
  $mmTable = '',
  $expected = TRUE 
)
protected

◆ assertNoLogEntries()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::assertNoLogEntries ( )
protected

◆ assertReferenceIndex()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::assertReferenceIndex ( array  $assertions,
  $expected = TRUE 
)
protected

◆ assertSortingOrder()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::assertSortingOrder (   $table,
  $field,
  $expectedOrderOfIds,
  $message 
)
protected

Asserts the correct order of elements.

Parameters
string$table
string$field
array$expectedOrderOfIds
string$message
Returns
void

Definition at line 289 of file AbstractTestCase.php.

References TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\getAllRecords().

◆ combine()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::combine ( )
protected
Returns
string

Definition at line 422 of file AbstractTestCase.php.

◆ elementToString()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::elementToString (   $element)
protected
Parameters
mixed$element
Returns
string

Definition at line 409 of file AbstractTestCase.php.

References $result.

◆ executeAssertionOnElements()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::executeAssertionOnElements ( array  $assertion,
array  $elements 
)
protected

◆ getAllRecords()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getAllRecords (   $table,
  $indexField = 'uid' 
)
protected

◆ getBackendUser()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getBackendUser ( )
protected
Returns

Definition at line 429 of file AbstractTestCase.php.

References $GLOBALS.

◆ getElementsByItemArray()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getElementsByItemArray ( array  $itemArray)
protected
Parameters
array$itemArray
Returns
array

Definition at line 158 of file AbstractTestCase.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\assertChildren().

◆ getElementStructureForCommands()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getElementStructureForCommands (   $command,
  $value,
array  $tables 
)
protected
Parameters
string$command
mixed$value
array$tablesTable names with list of ids to be edited
Returns
array

Definition at line 96 of file AbstractTestCase.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\simulateCommand().

◆ getFieldValue()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getFieldValue (   $tableName,
  $id,
  $fieldName 
)
protected

Gets the field value of a record.

Parameters
$tableName
$id
$fieldName
Returns
string

Definition at line 232 of file AbstractTestCase.php.

Referenced by TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\assertChildren().

◆ getLastLogEntryMessage()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getLastLogEntryMessage ( )
protected

Gets the last log entry.

Returns
array

Definition at line 142 of file AbstractTestCase.php.

References TYPO3\CMS\Core\Tests\FunctionalTestCase\getDatabaseConnection().

◆ getLoadDbGroup()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getLoadDbGroup ( )
protected

◆ getLogEntries()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getLogEntries ( )
protected

◆ getTcaFieldConfiguration()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getTcaFieldConfiguration (   $tableName,
  $fieldName 
)
protected

Gets the TCE configuration of a field.

Parameters
$tableName
$fieldName
Returns
array

Definition at line 186 of file AbstractTestCase.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\assertChildren().

◆ getTceMain()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::getTceMain ( )
protected

◆ setExpectedLogEntries()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::setExpectedLogEntries (   $count)
protected

Sets the number of expected log entries.

Parameters
integer$count
Returns
void

Definition at line 82 of file AbstractTestCase.php.

◆ setTcaFieldConfiguration()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::setTcaFieldConfiguration (   $tableName,
  $fieldName,
  $propertyName,
  $value 
)
protected
Parameters
string$tableName
string$fieldName
string$propertyName
mixed$value
Returns
void

Definition at line 201 of file AbstractTestCase.php.

References $GLOBALS.

◆ setTcaFieldConfigurationBehaviour()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::setTcaFieldConfigurationBehaviour (   $tableName,
  $fieldName,
  $behaviourName,
  $value 
)
protected
Parameters
string$tableName
string$fieldName
string$behaviourName
mixed$value
Returns
void

Definition at line 214 of file AbstractTestCase.php.

References $GLOBALS.

◆ setUp()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::setUp ( )

Sets up this test case.

Returns
void

Definition at line 49 of file AbstractTestCase.php.

References $GLOBALS, and TYPO3\CMS\Core\Core\Bootstrap\getInstance().

◆ simulateCommand()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::simulateCommand (   $command,
  $value,
array  $tables 
)
protected
Parameters
string$command
mixed$value
array$tablesTable names with list of ids to be edited
Returns

Definition at line 131 of file AbstractTestCase.php.

References TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\getElementStructureForCommands(), and TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\simulateCommandByStructure().

◆ simulateCommandByStructure()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::simulateCommandByStructure ( array  $elements)
protected

Simulates executing commands by using t3lib_TCEmain.

Parameters
array$elementsThe cmdmap to be delivered to DataHandler
Returns

Definition at line 117 of file AbstractTestCase.php.

References TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\getTceMain().

Referenced by TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\simulateCommand().

◆ tearDown()

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::tearDown ( )

Tears down this test case.

Returns
void

Definition at line 68 of file AbstractTestCase.php.

References TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase\assertNoLogEntries().

Member Data Documentation

◆ $expectedLogEntries

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::$expectedLogEntries = 0
private

Definition at line 42 of file AbstractTestCase.php.

◆ $testExtensionsToLoad

TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::$testExtensionsToLoad = array('typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial')
protected

Definition at line 37 of file AbstractTestCase.php.

◆ BEHAVIOUR_LocalizationMode

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::BEHAVIOUR_LocalizationMode = 'localizationMode'

Definition at line 35 of file AbstractTestCase.php.

◆ BEHAVIOUR_LocalizeChildrenAtParentLocalization

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::BEHAVIOUR_LocalizeChildrenAtParentLocalization = 'localizeChildrenAtParentLocalization'

Definition at line 34 of file AbstractTestCase.php.

◆ COMMAND_Copy

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::COMMAND_Copy = 'copy'

Definition at line 29 of file AbstractTestCase.php.

◆ COMMAND_Delete

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::COMMAND_Delete = 'delete'

Definition at line 31 of file AbstractTestCase.php.

◆ COMMAND_Localize

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::COMMAND_Localize = 'localize'

Definition at line 30 of file AbstractTestCase.php.

◆ PROPERTY_LocalizeReferencesAtParentLocalization

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::PROPERTY_LocalizeReferencesAtParentLocalization = 'localizeReferencesAtParentLocalization'

Definition at line 33 of file AbstractTestCase.php.

◆ TABLE_Pages

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::TABLE_Pages = 'pages'

Definition at line 27 of file AbstractTestCase.php.

◆ VALUE_LanguageId

const TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\AbstractTestCase::VALUE_LanguageId = 2

Definition at line 25 of file AbstractTestCase.php.