TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractDataHandlerActionTestCase Class Reference
Inheritance diagram for AbstractDataHandlerActionTestCase:
FunctionalTestCase BaseTestCase SpecialLanguagesTest AbstractActionTestCase ActionTestCase AbstractActionTestCase AbstractActionTestCase AbstractActionTestCase AbstractActionTestCase AbstractActionTestCase CheckValueTest CheckValueTestForCheckboxes AbstractActionTestCase EnableFieldsTest AbstractImportTestCase AbstractActionTestCase AbstractActionTestCase AbstractActionTestCase AbstractActionTestCase

Public Attributes

const VALUE_BackendUserId = 1
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 
 getActionService ()
 
 importScenarioDataSet ($dataSetName)
 
 assertAssertionDataSet ($dataSetName)
 
 assertInRecords (array $assertion, array $records)
 
 assertErrorLogEntries ()
 
 getAllRecords ($tableName, $hasUidField=false)
 
 arrayToString (array $array)
 
 renderRecords (array $assertion, array $record)
 
 getDifferentFields (array $assertion, array $record)
 
 getRequestSectionHasRecordConstraint ()
 
 getRequestSectionDoesNotHaveRecordConstraint ()
 
 getRequestSectionStructureHasRecordConstraint ()
 
 getRequestSectionStructureDoesNotHaveRecordConstraint ()
 
- Protected Member Functions inherited from FunctionalTestCase
 setUp ()
 
 getDatabaseConnection ()
 
 getConnectionPool ()
 
 importDataSet ($path)
 
 setUpFrontendRootPage ($pageId, array $typoScriptFiles=[])
 
 getFrontendResponse ($pageId, $languageId=0, $backendUserId=0, $workspaceId=0, $failOnFailure=true, $frontendUserId=0)
 
- 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

 $scenarioDataSetDirectory
 
 $assertionDataSetDirectory
 
 $expectedErrorLogEntries = 0
 
 $testExtensionsToLoad
 
 $pathsToLinkInTestInstance
 
 $recordIds = []
 
 $actionService
 
 $backendUser
 
- Protected Attributes inherited from FunctionalTestCase
 $identifier
 
 $instancePath
 
 $coreExtensionsToLoad = []
 
 $testExtensionsToLoad = []
 
 $pathsToLinkInTestInstance = []
 
 $configurationToUseInTestInstance = []
 
 $additionalFoldersToCreate = []
 
 $backendUserFixture = 'typo3/sysext/core/Tests/Functional/Fixtures/be_users.xml'
 
- Protected Attributes inherited from BaseTestCase
 $backupGlobals = true
 
 $backupStaticAttributes = false
 

Detailed Description

Functional test for the DataHandler

Definition at line 25 of file AbstractDataHandlerActionTestCase.php.

Member Function Documentation

arrayToString ( array  $array)
protected
Parameters
array$array
Returns
string

Definition at line 266 of file AbstractDataHandlerActionTestCase.php.

Referenced by AbstractDataHandlerActionTestCase\assertAssertionDataSet().

assertAssertionDataSet (   $dataSetName)
protected

Definition at line 129 of file AbstractDataHandlerActionTestCase.php.

References AbstractDataHandlerActionTestCase\arrayToString(), AbstractDataHandlerActionTestCase\assertInRecords(), AbstractDataHandlerActionTestCase\getAllRecords(), GeneralUtility\getFileAbsFileName(), DataSet\read(), and AbstractDataHandlerActionTestCase\renderRecords().

Referenced by ActionTest\addCategoryRelation(), ActionTest\addElementRelation(), ActionTest\changeCategoryRelationSorting(), ActionTest\changeContentSorting(), ActionTest\changeContentSortingAndCopyDraftPage(), ActionTest\changeContentSortingAndCopyLivePage(), ActionTest\changeContentSortingAndDeleteLiveRecord(), ActionTest\changeContentSortingAndDeleteMovedRecord(), ActionTest\changeElementRelationSorting(), ActionTest\changeElementSorting(), ActionTest\changePageSorting(), ActionTest\changeParentContentSorting(), ActionTest\copyCategoryOfRelation(), ActionTest\copyContent(), ActionTest\copyContentOfRelation(), ActionTest\copyElementOfRelation(), ActionTest\copyPage(), ActionTest\copyPageWithHotelBeforeParentContent(), ActionTest\copyParentContent(), ActionTest\copyParentContentToDifferentPage(), ActionTest\copyPasteContent(), ActionTest\createAndCopyContentAndDiscardCopiedContent(), ActionTest\createAndCopyParentContentWithHotelAndOfferChildren(), ActionTest\createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildren(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration(), ActionTest\createCategoryAndAddRelation(), ActionTest\createCategoryAndCreateRelation(), ActionTest\createCategoryWithContentAndAddRelation(), ActionTest\createContentAndAddElementRelation(), ActionTest\createContentAndAddRelation(), ActionTest\createContentAndCopyDraftPage(), ActionTest\createContentAndCopyLivePage(), ActionTest\createContentAndCreateElementRelation(), ActionTest\createContentAndCreateRelation(), ActionTest\createContentAndDiscardCreatedContent(), ActionTest\createContents(), ActionTest\createContentWithCategoryAndAddRelation(), ActionTest\createContentWithFileReference(), ActionTest\createNestedPagesAndCopyDraftParentPage(), ActionTest\createNestedPagesAndCopyLiveParentPage(), ActionTest\createPage(), ActionTest\createPageAndCopyDraftParentPage(), ActionTest\createPageAndCopyLiveParentPage(), ActionTest\createParentContent(), ActionTest\createParentContentWithHotelAndOfferChildren(), ActionTest\createPlaceholdersAndDeleteDraftParentPage(), ActionTest\createPlaceholdersAndDeleteLiveParentPage(), ActionTest\deleteCategoryOfRelation(), ActionTest\deleteCategoryRelation(), ActionTest\deleteContent(), ActionTest\deleteContentAndCopyDraftPage(), ActionTest\deleteContentAndCopyLivePage(), ActionTest\deleteContentAndPage(), ActionTest\deleteContentOfRelation(), ActionTest\deleteElementOfRelation(), ActionTest\deleteElementRelation(), ActionTest\deleteLocalizedContentAndDeleteContent(), ActionTest\deletePage(), ActionTest\deleteParentContent(), ActionTest\deleteParentContentAndDiscardDeletedParent(), ImportInEmptyDatabaseTest\importGroupFileAndFileReferenceItem(), ImportInEmptyDatabaseTest\importGroupFileAndFileReferenceItemButImagesNotIncluded(), ImportInEmptyDatabaseTest\importGroupFileAndFileReferenceItemInFlexForm(), ImportInEmptyDatabaseTest\importGroupFileAndFileReferenceItemWithRootLevelAndPagesAllowed(), ImportInEmptyDatabaseTest\importGroupFileAndFileReferenceItemWithRootLevelNotAllowed(), ImportInEmptyDatabaseTest\importGroupFileAndFileReferenceItemWithRootLevelOnlyAllowed(), ImportInEmptyDatabaseTest\importIrreRecords(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContent(), ImportInFilledDatabaseTest\importPagesAndRelatedTtContentWithDifferentImageToExistingData(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesButNotIncluded(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseInsensitiveFilesystems(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesButWithoutStorageOnCaseSensitiveFilesystems(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesOnCaseInsensitiveFilesystems(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesOnCaseSensitiveFilesystems(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImagesWithSpacesInPath(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithImageWithForcedUids(), ImportInEmptyDatabaseTest\importPagesAndRelatedTtContentWithRteImagesAndFileLink(), ImportInFilledDatabaseTest\importPagesAndRelatedTtContentWithSameImageToExistingData(), ActionTest\localizeCategoryOfRelation(), ActionTest\localizeContent(), ActionTest\localizeContentFromNonDefaultLanguage(), ActionTest\localizeContentOfRelation(), ActionTest\localizeElementOfRelation(), ActionTest\localizePage(), ActionTest\localizeParentContentInKeepMode(), ActionTest\localizeParentContentInSelectMode(), ActionTest\localizeParentContentWithAllChildrenInKeepMode(), ActionTest\localizeParentContentWithAllChildrenInSelectMode(), ActionTest\modifyAndDiscardAndModifyParentWithHotelChild(), ActionTest\modifyBothSidesOfRelation(), ActionTest\modifyBothsOfRelation(), ActionTest\modifyCategoryOfRelation(), ActionTest\modifyContent(), ActionTest\modifyContentAndAddFileReference(), ActionTest\modifyContentAndDeleteAllFileReference(), ActionTest\modifyContentAndDeleteFileReference(), ActionTest\modifyContentOfRelation(), ActionTest\modifyContentWithFileReference(), ActionTest\modifyElementOfRelation(), ActionTest\modifyOnlyHotelChild(), ActionTest\modifyPage(), ActionTest\modifyParentAndAddHotelChild(), ActionTest\modifyParentAndChangeHotelChildrenSorting(), ActionTest\modifyParentAndDeleteHotelChild(), ActionTest\modifyParentContent(), ActionTest\modifyParentWithHotelChild(), ActionTest\modifyParentWithHotelChildAndDiscardAll(), ActionTest\modifyParentWithHotelChildAndDiscardModifiedParent(), ActionTest\moveContentAndCopyDraftPage(), ActionTest\moveContentAndCopyLivePage(), ActionTest\moveContentOfRelationToDifferentPage(), ActionTest\moveContentToDifferentPage(), ActionTest\moveContentToDifferentPageAndChangeSorting(), ActionTest\movePageToDifferentPage(), ActionTest\movePageToDifferentPageAndChangeSorting(), ActionTest\movePageToDifferentPageAndCreatePageAfterMovedPage(), ActionTest\moveParentContentToDifferentPage(), ActionTest\moveParentContentToDifferentPageAndChangeSorting(), and ActionTest\movePasteContentToDifferentPage().

assertErrorLogEntries ( )
protected

Asserts correct number of warning and error log entries.

Returns
void

Definition at line 200 of file AbstractDataHandlerActionTestCase.php.

References FunctionalTestCase\getConnectionPool().

Referenced by AbstractDataHandlerActionTestCase\tearDown().

assertInRecords ( array  $assertion,
array  $records 
)
protected
Parameters
array$assertion
array$records
Returns
bool|int|string

Definition at line 182 of file AbstractDataHandlerActionTestCase.php.

References AbstractDataHandlerActionTestCase\getDifferentFields().

Referenced by AbstractDataHandlerActionTestCase\assertAssertionDataSet().

getAllRecords (   $tableName,
  $hasUidField = false 
)
protected
Parameters
string$tableName
bool$hasUidField
Returns
array

Definition at line 239 of file AbstractDataHandlerActionTestCase.php.

References FunctionalTestCase\getConnectionPool().

Referenced by AbstractDataHandlerActionTestCase\assertAssertionDataSet().

getDifferentFields ( array  $assertion,
array  $record 
)
protected
Parameters
array$assertion
array$record
Returns
array

Definition at line 343 of file AbstractDataHandlerActionTestCase.php.

Referenced by AbstractDataHandlerActionTestCase\assertInRecords(), and AbstractDataHandlerActionTestCase\renderRecords().

getRequestSectionHasRecordConstraint ( )
protected
Returns

Definition at line 369 of file AbstractDataHandlerActionTestCase.php.

Referenced by ActionTest\changeContentSorting(), ActionTest\changeContentSortingAndCopyDraftPage(), ActionTest\changeContentSortingAndCopyLivePage(), ActionTest\changeContentSortingAndDeleteLiveRecord(), ActionTest\changeContentSortingAndDeleteMovedRecord(), ActionTest\changePageSorting(), ActionTest\copyContent(), ActionTest\copyPage(), ActionTest\copyPageWithHotelBeforeParentContent(), ActionTest\copyPasteContent(), ActionTest\createAndCopyContentAndDiscardCopiedContent(), ActionTest\createAndCopyParentContentWithHotelAndOfferChildren(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildren(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration(), ActionTest\createCategoryAndAddRelation(), ActionTest\createContentAndAddElementRelation(), ActionTest\createContentAndAddRelation(), ActionTest\createContentAndCopyDraftPage(), ActionTest\createContentAndCreateElementRelation(), ActionTest\createContentAndCreateRelation(), ActionTest\createContents(), ActionTest\createContentWithFileReference(), ActionTest\createNestedPagesAndCopyDraftParentPage(), ActionTest\createPage(), ActionTest\createPageAndCopyDraftParentPage(), ActionTest\createParentContent(), ActionTest\createParentContentWithHotelAndOfferChildren(), ActionTest\deleteContent(), ActionTest\deleteContentAndCopyLivePage(), ActionTest\deleteParentContentAndDiscardDeletedParent(), ActionTest\localizeContent(), ActionTest\localizeContentFromNonDefaultLanguage(), ActionTest\localizePage(), ActionTest\modifyAndDiscardAndModifyParentWithHotelChild(), ActionTest\modifyBothSidesOfRelation(), ActionTest\modifyBothsOfRelation(), ActionTest\modifyContent(), ActionTest\modifyContentOfRelation(), ActionTest\modifyContentWithFileReference(), ActionTest\modifyPage(), ActionTest\modifyParentContent(), ActionTest\modifyParentWithHotelChildAndDiscardAll(), ActionTest\modifyParentWithHotelChildAndDiscardModifiedParent(), ActionTest\moveContentAndCopyDraftPage(), ActionTest\moveContentAndCopyLivePage(), ActionTest\moveContentToDifferentPage(), ActionTest\moveContentToDifferentPageAndChangeSorting(), ActionTest\movePageToDifferentPage(), ActionTest\movePageToDifferentPageAndChangeSorting(), ActionTest\moveParentContentToDifferentPage(), ActionTest\moveParentContentToDifferentPageAndChangeSorting(), ActionTest\movePasteContentToDifferentPage(), EnableFieldsTest\onlyOwnProtectedRecordsWithQueryCacheInvolvedAreReturned(), EnableFieldsTest\onlyReturnProtectedRecordsForTheFirstUserGroup(), EnableFieldsTest\onlyReturnProtectedRecordsForTheSecondUserGroup(), and EnableFieldsTest\protectedRecordsNotFoundIfNoUserLoggedIn().

getRequestSectionStructureHasRecordConstraint ( )
protected
Returns

Definition at line 385 of file AbstractDataHandlerActionTestCase.php.

Referenced by ActionTest\addCategoryRelation(), ActionTest\addElementRelation(), ActionTest\changeCategoryRelationSorting(), ActionTest\changeContentSorting(), ActionTest\changeElementRelationSorting(), ActionTest\changeElementSorting(), ActionTest\changeParentContentSorting(), ActionTest\copyCategoryOfRelation(), ActionTest\copyContent(), ActionTest\copyContentOfRelation(), ActionTest\copyElementOfRelation(), ActionTest\copyPage(), ActionTest\copyParentContent(), ActionTest\copyParentContentToDifferentPage(), ActionTest\createAndCopyParentContentWithHotelAndOfferChildren(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildren(), ActionTest\createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration(), ActionTest\createCategoryAndAddRelation(), ActionTest\createContentAndAddElementRelation(), ActionTest\createContentAndAddRelation(), ActionTest\createContentAndCreateElementRelation(), ActionTest\createContentAndCreateRelation(), ActionTest\createContentWithFileReference(), ActionTest\createParentContentWithHotelAndOfferChildren(), ActionTest\deleteCategoryRelation(), ActionTest\deleteElementRelation(), ActionTest\localizeCategoryOfRelation(), ActionTest\localizeContent(), ActionTest\localizeContentOfRelation(), ActionTest\localizeElementOfRelation(), ActionTest\localizeParentContentWithAllChildrenInSelectMode(), ActionTest\modifyBothSidesOfRelation(), ActionTest\modifyBothsOfRelation(), ActionTest\modifyCategoryOfRelation(), ActionTest\modifyContent(), ActionTest\modifyContentAndAddFileReference(), ActionTest\modifyContentAndDeleteFileReference(), ActionTest\modifyContentWithFileReference(), ActionTest\modifyElementOfRelation(), ActionTest\modifyOnlyHotelChild(), ActionTest\modifyPage(), ActionTest\modifyParentAndAddHotelChild(), ActionTest\modifyParentAndChangeHotelChildrenSorting(), ActionTest\modifyParentAndDeleteHotelChild(), ActionTest\modifyParentContent(), ActionTest\modifyParentWithHotelChild(), ActionTest\modifyParentWithHotelChildAndDiscardAll(), ActionTest\modifyParentWithHotelChildAndDiscardModifiedParent(), ActionTest\moveContentOfRelationToDifferentPage(), ActionTest\moveContentToDifferentPage(), ActionTest\moveContentToDifferentPageAndChangeSorting(), ActionTest\movePageToDifferentPageAndChangeSorting(), ActionTest\movePageToDifferentPageAndCreatePageAfterMovedPage(), ActionTest\moveParentContentToDifferentPage(), and ActionTest\moveParentContentToDifferentPageAndChangeSorting().

importScenarioDataSet (   $dataSetName)
protected
renderRecords ( array  $assertion,
array  $record 
)
protected
Parameters
array$assertion
array$record
Returns
string

Definition at line 283 of file AbstractDataHandlerActionTestCase.php.

References AbstractDataHandlerActionTestCase\getDifferentFields().

Referenced by AbstractDataHandlerActionTestCase\assertAssertionDataSet().

tearDown ( )
protected

Member Data Documentation

$actionService
protected

Definition at line 69 of file AbstractDataHandlerActionTestCase.php.

$assertionDataSetDirectory
protected

Definition at line 37 of file AbstractDataHandlerActionTestCase.php.

$backendUser
protected

Definition at line 74 of file AbstractDataHandlerActionTestCase.php.

$expectedErrorLogEntries = 0
protected

Definition at line 45 of file AbstractDataHandlerActionTestCase.php.

$pathsToLinkInTestInstance
protected
Initial value:
= [
'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/AdditionalConfiguration.php' => 'typo3conf/AdditionalConfiguration.php'

Definition at line 57 of file AbstractDataHandlerActionTestCase.php.

$recordIds = []
protected

Definition at line 64 of file AbstractDataHandlerActionTestCase.php.

$scenarioDataSetDirectory
protected

Definition at line 32 of file AbstractDataHandlerActionTestCase.php.

$testExtensionsToLoad
protected
Initial value:
= [
'typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial',
]

Definition at line 50 of file AbstractDataHandlerActionTestCase.php.

const VALUE_BackendUserId = 1

Definition at line 27 of file AbstractDataHandlerActionTestCase.php.