‪TYPO3CMS  ‪main
TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest Class Reference
Inheritance diagram for TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest:
TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionWorkspacesTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase TYPO3\CMS\Core\Tests\Functional\DataScenarios\AbstractDataHandlerActionTestCase TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait TYPO3\CMS\Core\Log\LogDataTrait

Public Member Functions

 verifyCleanReferenceIndex ()
 
 createParentContent ()
 
 modifyParentContent ()
 
 deleteParentContent ()
 
 copyParentContent ()
 
 copyParentContentToDifferentPage ()
 
 localizeParentContentWithAllChildren ()
 
 changeParentContentSorting ()
 
 moveParentContentToDifferentPage ()
 
 moveParentContentToDifferentPageTwice ()
 
 moveParentContentToDifferentPageAndChangeSorting ()
 
 modifyPage ()
 
 deletePage ()
 
 copyPage ()
 
 copyPageWithHotelBeforeParentContent ()
 
 createParentContentWithHotelAndOfferChildren ()
 
 createAndCopyParentContentWithHotelAndOfferChildren ()
 
 createAndLocalizeParentContentWithHotelAndOfferChildren ()
 
 createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration ()
 
 modifyOnlyHotelChild ()
 
 modifyParentAndChangeHotelChildrenSorting ()
 
 modifyParentWithHotelChild ()
 
 modifyParentAndAddHotelChild ()
 
 modifyParentAndDeleteHotelChild ()
 
 modifyAndDiscardAndModifyParentWithHotelChild ()
 
 inlineLocalizeSynchronizeLocalizeMissing ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionWorkspacesTestCase
 createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase
 localizeParentContentWithLanguageSynchronization ()
 
 localizeParentContentChainLanguageSynchronizationSource ()
 
 copyParentContentToLanguageWithAllChildren ()
 
 localizeParentContentAndCreateNestedChildrenWithLanguageSynchronization ()
 
 localizeParentContentAndSetInvalidChildReferenceWithLanguageSynchronization ()
 
 localizeParentContentAndSetInvalidChildReferenceWithLateLanguageSynchronization ()
 
 localizePageWithLocalizationExclude ()
 
 localizePageTwiceWithLocalizationExclude ()
 
 localizePageAndAddHotelChildWithLocalizationExclude ()
 
 localizePageWithLanguageSynchronization ()
 
 localizePageAndAddHotelChildWithLanguageSynchronization ()
 
 localizePageAndAddMonoglotHotelChildWithLanguageSynchronization ()
 
 localizeAndCopyPageWithLanguageSynchronization ()
 
 localizePageWithSynchronizationAndCustomLocalizedHotel ()
 

Additional Inherited Members

- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase
 setUp ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\AbstractDataHandlerActionTestCase
 tearDown ()
 
 setWorkspaceId (int $workspaceId)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
 unserializeLogData (mixed $logData)
 
 formatLogDetails (string $detailString, mixed $substitutes)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
 writeSiteConfiguration (string $identifier, array $site=[], array $languages=[], array $errorHandling=[])
 
 mergeSiteConfiguration (string $identifier, array $overrides)
 
 buildSiteConfiguration (int $rootPageId, string $base='')
 
 buildDefaultLanguageConfiguration (string $identifier, string $base)
 
 buildLanguageConfiguration (string $identifier, string $base, array $fallbackIdentifiers=[], string $fallbackType=null)
 
 buildErrorHandlingConfiguration (string $handler, array $codes)
 
mixed resolveLanguagePreset (string $identifier)
 
 applyInstructions (InternalRequest $request, AbstractInstruction ... $instructions)
 
 mergeInstruction (AbstractInstruction $current, AbstractInstruction $other)
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Log\LogDataTrait
static formatLogDetailsStatic (string $detailString, array $substitutes)
 
- ‪Static Protected Member Functions inherited from ‪TYPO3\CMS\Core\Tests\Functional\SiteHandling\SiteBasedTestTrait
static failIfArrayIsNotEmpty (array $items)
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionWorkspacesTestCase
const VALUE_WorkspaceId = 1
 
const SCENARIO_DataSet = __DIR__ . '/DataSet/ImportDefaultWorkspaces.csv'
 
array $coreExtensionsToLoad = ['workspaces']
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase
const VALUE_PageId = 89
 
const VALUE_PageIdTarget = 90
 
const VALUE_PageIdWebsite = 1
 
const VALUE_ContentIdFirst = 297
 
const VALUE_ContentIdLast = 298
 
const VALUE_HotelIdFirst = 3
 
const VALUE_HotelIdSecond = 4
 
const VALUE_HotelIdThird = 5
 
const VALUE_OfferIdLast = 8
 
const VALUE_LanguageId = 1
 
const VALUE_LanguageIdSecond = 2
 
const TABLE_Page = 'pages'
 
const TABLE_Content = 'tt_content'
 
const TABLE_Hotel = 'tx_testirreforeignfieldnonws_hotel'
 
const TABLE_Offer = 'tx_testirreforeignfieldnonws_offer'
 
const TABLE_Price = 'tx_testirreforeignfieldnonws_price'
 
const FIELD_PageHotel = 'tx_testirreforeignfieldnonws_hotels'
 
const FIELD_ContentHotel = 'tx_testirreforeignfieldnonws_hotels'
 
const FIELD_HotelOffer = 'offers'
 
const FIELD_OfferPrice = 'prices'
 
const SCENARIO_DataSet = __DIR__ . '/DataSet/ImportDefault.csv'
 
array $testExtensionsToLoad
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Core\Tests\Functional\DataScenarios\AbstractDataHandlerActionTestCase
const VALUE_BackendUserId = 1
 
const VALUE_WorkspaceId = 0
 
int $expectedErrorLogEntries = 0
 
array $recordIds = []
 
ActionService $actionService
 
BackendUserAuthentication $backendUser
 
const LANGUAGE_PRESETS
 

Detailed Description

Todo:
‪: All these workspace tests on not-ws aware hotel, child and price tables are funny. Even though 'live_edit' is true, editing for instance a ws-aware pages or tt_content table and deleting / adding a hotel child raises DH warnings "Record could not be created in this workspace" or "Versioning is not supported for this table". This is technically fine. However, having an inline relation from a ws-aware table to a non-ws aware table (even with live_edit=1) and then editing relations in a workspace is logically inconsistent. We may want to scan for these scenarios in TCA and notify / deprecate it by hinting integrators on this problematic situation when ext:workspaces is loaded?! Avoiding this would relax quite a few scenarios here. Note sys_file is a special scenario here as well (not covered by the tests below, though). In the end, all these cases below need a review and thoughts. For now, we're skipping "WorkspaceDiscard", "WorkspacePublish" and "WorkspacePublishAll" tests, since "WorkspaceModify" already show enough inconsistencies.

Definition at line 38 of file ActionTest.php.

Member Function Documentation

◆ changeParentContentSorting()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::changeParentContentSorting ( )

◆ copyPage()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::copyPage ( )
Todo:
‪: Leads to issues with sys_refindex which does not adapt sorting field for live changes.

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 147 of file ActionTest.php.

◆ copyPageWithHotelBeforeParentContent()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::copyPageWithHotelBeforeParentContent ( )
Todo:
‪: Leads to issues with sys_refindex which does not adapt sorting field for live changes.

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 157 of file ActionTest.php.

◆ copyParentContent()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::copyParentContent ( )
Todo:
‪: Leads to issues with sys_refindex which does not adapt sorting field for live changes.

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 71 of file ActionTest.php.

◆ copyParentContentToDifferentPage()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::copyParentContentToDifferentPage ( )
Todo:
‪: Leads to issues with sys_refindex which does not adapt sorting field for live changes.

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 80 of file ActionTest.php.

◆ createAndCopyParentContentWithHotelAndOfferChildren()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::createAndCopyParentContentWithHotelAndOfferChildren ( )
Todo:
‪: Weird - this may / should localize the live record? What happens here?

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 175 of file ActionTest.php.

◆ createAndLocalizeParentContentWithHotelAndOfferChildren()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::createAndLocalizeParentContentWithHotelAndOfferChildren ( )

◆ createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration ( )

◆ createParentContent()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::createParentContent ( )

Parent content records Create a new parent content element

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 48 of file ActionTest.php.

◆ createParentContentWithHotelAndOfferChildren()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::createParentContentWithHotelAndOfferChildren ( )

IRRE Child Records Create a parent content and add a hotel and offer

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 165 of file ActionTest.php.

◆ deletePage()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::deletePage ( )

◆ deleteParentContent()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::deleteParentContent ( )

◆ inlineLocalizeSynchronizeLocalizeMissing()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::inlineLocalizeSynchronizeLocalizeMissing ( )
Todo:
‪: Weird - this may / should localize the live record? What happens here?

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 254 of file ActionTest.php.

◆ localizeParentContentWithAllChildren()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::localizeParentContentWithAllChildren ( )

◆ modifyAndDiscardAndModifyParentWithHotelChild()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyAndDiscardAndModifyParentWithHotelChild ( )
Todo:
‪: This reveals another core bug "Undefined array key "t3ver_state"" in ElementEntityProcessor.php

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionWorkspacesTestCase.

Definition at line 245 of file ActionTest.php.

◆ modifyOnlyHotelChild()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyOnlyHotelChild ( )

◆ modifyPage()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyPage ( )

◆ modifyParentAndAddHotelChild()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyParentAndAddHotelChild ( )

◆ modifyParentAndChangeHotelChildrenSorting()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyParentAndChangeHotelChildrenSorting ( )
Todo:
‪: Leads to issues with sys_refindex which does not adapt sorting field for live changes.

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 212 of file ActionTest.php.

◆ modifyParentAndDeleteHotelChild()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyParentAndDeleteHotelChild ( )

◆ modifyParentContent()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyParentContent ( )

◆ modifyParentWithHotelChild()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::modifyParentWithHotelChild ( )

◆ moveParentContentToDifferentPage()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::moveParentContentToDifferentPage ( )
Todo:
‪: "Trying to access array offset on value of type bool" - workspaces/Classes/Hook/DataHandlerHook.php:366

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 106 of file ActionTest.php.

◆ moveParentContentToDifferentPageAndChangeSorting()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::moveParentContentToDifferentPageAndChangeSorting ( )
Todo:
‪: "Trying to access array offset on value of type bool" - workspaces/Classes/Hook/DataHandlerHook.php:366

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 124 of file ActionTest.php.

◆ moveParentContentToDifferentPageTwice()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::moveParentContentToDifferentPageTwice ( )
Todo:
‪: "Trying to access array offset on value of type bool" - workspaces/Classes/Hook/DataHandlerHook.php:366

Reimplemented from TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\AbstractActionTestCase.

Definition at line 115 of file ActionTest.php.

◆ verifyCleanReferenceIndex()

TYPO3\CMS\Core\Tests\Functional\DataScenarios\IrreForeignFieldNonWs\WorkspacesModify\ActionTest::verifyCleanReferenceIndex ( )

Definition at line 41 of file ActionTest.php.