[BUGFIX] Extbase behaviour concerning workspaces 88/30688/6
authorOliver Hader <oliver@typo3.org>
Tue, 10 Jun 2014 10:03:29 +0000 (12:03 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 18 Sep 2014 14:08:55 +0000 (16:08 +0200)
Issue #26732 introduced some behaviour into Extbase that cannot
work on the long-run. The usual behaviour of TYPO3 is "fetch
live, then overlay". Avoiding that chain might lead to
several side-effects.

This change integrates a new property "_versionedUid" than
contains the specific uid of the versioned record (this is
similar to the already existing _localizedUid property).
Besides that, changes of issue #26732 are reverted.

Functional frontend tests are enabled for live and workspace
for all IRRE ForeignField scenarios.

Resolves: #59107
Releases: 6.2, 6.3
Change-Id: Idc46fb86830bc3d750972adade178cf9c618ece5
Reviewed-on: http://review.typo3.org/30688
Reviewed-by: Fabien Udriot <fabien.udriot@ecodev.ch>
Reviewed-by: Alexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/ActionTest.php
typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Classes/Controller/AbstractController.php
typo3/sysext/extbase/Classes/DomainObject/AbstractDomainObject.php
typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/DataMapper.php
typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php
typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Storage/Typo3DbBackendTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Modify/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/Publish/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/PublishAll/ActionTest.php

index 5ead1fe..d6c53d0 100644 (file)
@@ -53,7 +53,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
                        1,
                        array(
                                'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-                               // 'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/ExtbaseJsonRenderer.ts',
+                               'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/ExtbaseJsonRenderer.ts',
                        )
                );
                $this->backendUser->workspace = 0;
index 1b5fd08..f8f9e98 100644 (file)
@@ -38,7 +38,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::createParentContent();
                $this->assertAssertionDataSet('createParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
        }
@@ -51,7 +51,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyParentContent();
                $this->assertAssertionDataSet('modifyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -67,7 +67,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::deleteParentContent();
                $this->assertAssertionDataSet('deleteParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -80,7 +80,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::copyParentContent();
                $this->assertAssertionDataSet('copyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -94,7 +94,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::copyParentContentToDifferentPage();
                $this->assertAssertionDataSet('copyParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -108,7 +108,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::localizeParentContentInKeepMode();
                $this->assertAssertionDataSet('localizeParentContentKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -122,7 +122,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::localizeParentContentWithAllChildrenInKeepMode();
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -136,7 +136,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::localizeParentContentInSelectMode();
                $this->assertAssertionDataSet('localizeParentContentSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -150,7 +150,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::localizeParentContentWithAllChildrenInSelectMode();
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -164,7 +164,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::changeParentContentSorting();
                $this->assertAssertionDataSet('changeParentContentSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -181,7 +181,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::moveParentContentToDifferentPage();
                $this->assertAssertionDataSet('moveParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -197,7 +197,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::moveParentContentToDifferentPageAndChangeSorting();
                $this->assertAssertionDataSet('moveParentContentToDifferentPageNChangeSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -220,7 +220,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyPage();
                $this->assertAssertionDataSet('modifyPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
        }
@@ -245,7 +245,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::copyPage();
                $this->assertAssertionDataSet('copyPage');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'])->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'])->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -258,7 +258,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::copyPageWithHotelBeforeParentContent();
                $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'])->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'])->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -275,7 +275,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::createParentContentWithHotelAndOfferChildren();
                $this->assertAssertionDataSet('createParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -291,7 +291,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::createAndCopyParentContentWithHotelAndOfferChildren();
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -311,7 +311,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::createAndLocalizeParentContentWithHotelAndOfferChildren();
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                // Content record gets overlaid, thus using newContentId
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
@@ -330,7 +330,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyOnlyHotelChild();
                $this->assertAssertionDataSet('modifyOnlyHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -344,7 +344,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyParentAndChangeHotelChildrenSorting();
                $this->assertAssertionDataSet('modifyParentNChangeHotelChildrenSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #2', 'Hotel #1'));
@@ -358,7 +358,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyParentWithHotelChild();
                $this->assertAssertionDataSet('modifyParentNHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -372,7 +372,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyParentAndAddHotelChild();
                $this->assertAssertionDataSet('modifyParentNAddHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -386,7 +386,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\Fore
                parent::modifyParentAndDeleteHotelChild();
                $this->assertAssertionDataSet('modifyParentNDeleteHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
index 2099fde..4892a9a 100644 (file)
@@ -52,12 +52,21 @@ abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\Acti
                }
 
                foreach ($iterator as $entity) {
-                       $tableName = $this->dataMapFactory->buildDataMap(get_class($entity))->getTableName();
+                       $dataMap = $this->dataMapFactory->buildDataMap(get_class($entity));
+                       $tableName = $dataMap->getTableName();
                        $identifier = $tableName . ':' . $entity->getUid();
-                       $structureItem = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getGettableProperties($entity);
-                       foreach ($structureItem as $propertyName => $propertyValue) {
+                       $properties = \TYPO3\CMS\Extbase\Reflection\ObjectAccess::getGettableProperties($entity);
+
+                       $structureItem = array();
+                       foreach ($properties as $propertyName => $propertyValue) {
+                               $columnMap = $dataMap->getColumnMap($propertyName);
+                               if ($columnMap !== NULL) {
+                                       $propertyName = $columnMap->getColumnName();
+                               }
                                if ($propertyValue instanceof \Iterator) {
                                        $structureItem[$propertyName] = $this->getStructure($propertyValue);
+                               } else {
+                                       $structureItem[$propertyName] = $propertyValue;
                                }
                        }
                        $structure[$identifier] = $structureItem;
@@ -102,4 +111,4 @@ abstract class AbstractController extends \TYPO3\CMS\Extbase\Mvc\Controller\Acti
                return $this->objectManager->get('OliverHader\\IrreTutorial\\Service\\QueueService');
        }
 
-}
\ No newline at end of file
+}
index b76458e..49ee89a 100644 (file)
@@ -36,6 +36,11 @@ abstract class AbstractDomainObject implements DomainObjectInterface, \TYPO3\CMS
        protected $_languageUid;
 
        /**
+        * @var int The uid of the versioned record.
+        */
+       protected $_versionedUid;
+
+       /**
         * @var int The id of the page the record is "stored".
         */
        protected $pid;
index 3fef922..17f0b09 100644 (file)
@@ -177,12 +177,16 @@ class DataMapper implements \TYPO3\CMS\Core\SingletonInterface {
                $object->_setProperty('uid', (int)$row['uid']);
                $object->_setProperty('pid', (int)$row['pid']);
                $object->_setProperty('_localizedUid', (int)$row['uid']);
+               $object->_setProperty('_versionedUid', (int)$row['uid']);
                if ($dataMap->getLanguageIdColumnName() !== NULL) {
                        $object->_setProperty('_languageUid', (int)$row[$dataMap->getLanguageIdColumnName()]);
                        if (isset($row['_LOCALIZED_UID'])) {
                                $object->_setProperty('_localizedUid', (int)$row['_LOCALIZED_UID']);
                        }
                }
+               if (!empty($row['_ORIG_uid']) && !empty($GLOBALS['TCA'][$dataMap->getTableName()]['ctrl']['versioningWS'])) {
+                       $object->_setProperty('_versionedUid', (int)$row['_ORIG_uid']);
+               }
                $properties = $object->_getProperties();
                foreach ($properties as $propertyName => $propertyValue) {
                        if (!$dataMap->isPersistableProperty($propertyName)) {
index a76f821..dd6ae3c 100644 (file)
@@ -731,6 +731,26 @@ class Typo3DbBackend implements BackendInterface, \TYPO3\CMS\Core\SingletonInter
                        $pageRepository->versioningWorkspaceId = $workspaceUid;
                }
 
+               // Fetches the move-placeholder in case it is supported
+               // by the table and if there's only one row in the result set
+               // (applying this to all rows does not work, since the sorting
+               // order would be destroyed and possible limits not met anymore)
+               if (!empty($pageRepository->versioningWorkspaceId)
+                       && !empty($GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'])
+                       && $GLOBALS['TCA'][$tableName]['ctrl']['versioningWS'] >= 2
+                       && count($rows) === 1
+               ) {
+                       $movePlaceholder = $this->databaseHandle->exec_SELECTgetSingleRow(
+                               $tableName . '.*',
+                               $tableName,
+                               't3ver_state=3 AND t3ver_wsid=' . $pageRepository->versioningWorkspaceId
+                                       . ' AND t3ver_move_id=' . $rows[0]['uid']
+                       );
+                       if (!empty($movePlaceholder)) {
+                               $rows = array($movePlaceholder);
+                       }
+               }
+
                $overlaidRows = array();
                foreach ($rows as $row) {
                        // If current row is a translation select its parent
@@ -751,9 +771,6 @@ class Typo3DbBackend implements BackendInterface, \TYPO3\CMS\Core\SingletonInter
                                }
                        }
                        $pageRepository->versionOL($tableName, $row, TRUE);
-                       if ($pageRepository->versioningPreview && isset($row['_ORIG_uid'])) {
-                               $row['uid'] = $row['_ORIG_uid'];
-                       }
                        if ($tableName == 'pages') {
                                $row = $pageRepository->getPageOverlay($row, $querySettings->getLanguageUid());
                        } elseif (isset($GLOBALS['TCA'][$tableName]['ctrl']['languageField'])
index 5c71bd0..0ab92f5 100644 (file)
@@ -68,7 +68,7 @@ class Typo3DbBackendTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
         */
        public function doLanguageAndWorkspaceOverlayChangesUidIfInPreview() {
                $comparisonRow = array(
-                       'uid' => '43',
+                       'uid' => '42',
                        'pid' => '42',
                        '_ORIG_pid' => '-1',
                        '_ORIG_uid' => '43'
@@ -121,4 +121,4 @@ class Typo3DbBackendTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $result = $mock->_call('resolveParameterPlaceholders', $stmtParts, $parameters);
                $this->assertSame($expected, $result['where']);
        }
-}
\ No newline at end of file
+}
index 3c8755d..d3a6408 100644 (file)
@@ -64,7 +64,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
                        1,
                        array(
                                'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-                               // 'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/ExtbaseJsonRenderer.ts',
+                               'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/ExtbaseJsonRenderer.ts',
                        )
                );
                $this->backendUser->workspace = self::VALUE_WorkspaceId;
index 2e41b22..31ee23f 100644 (file)
@@ -38,7 +38,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createParentContent();
                $this->assertAssertionDataSet('createParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
        }
@@ -51,7 +51,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentContent();
                $this->assertAssertionDataSet('modifyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -67,7 +67,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::deleteParentContent();
                $this->assertAssertionDataSet('deleteParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -80,7 +80,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::deleteParentContentAndDiscardDeletedParent();
                $this->assertAssertionDataSet('deleteParentContentNDiscardDeletedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -93,7 +93,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::copyParentContent();
                $this->assertAssertionDataSet('copyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -107,7 +107,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::copyParentContentToDifferentPage();
                $this->assertAssertionDataSet('copyParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -121,7 +121,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::localizeParentContentInKeepMode();
                $this->assertAssertionDataSet('localizeParentContentKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -135,7 +135,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::localizeParentContentWithAllChildrenInKeepMode();
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -149,7 +149,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::localizeParentContentInSelectMode();
                $this->assertAssertionDataSet('localizeParentContentSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -163,7 +163,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::localizeParentContentWithAllChildrenInSelectMode();
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -177,7 +177,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::changeParentContentSorting();
                $this->assertAssertionDataSet('changeParentContentSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -194,7 +194,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::moveParentContentToDifferentPage();
                $this->assertAssertionDataSet('moveParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -210,7 +210,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::moveParentContentToDifferentPageAndChangeSorting();
                $this->assertAssertionDataSet('moveParentContentToDifferentPageNChangeSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -233,7 +233,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyPage();
                $this->assertAssertionDataSet('modifyPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -261,7 +261,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::copyPage();
                $this->assertAssertionDataSet('copyPage');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -274,7 +274,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::copyPageWithHotelBeforeParentContent();
                $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -291,7 +291,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createParentContentWithHotelAndOfferChildren();
                $this->assertAssertionDataSet('createParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -307,7 +307,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createAndCopyParentContentWithHotelAndOfferChildren();
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -329,7 +329,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent();
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildrenNDiscardCopiedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
        }
@@ -342,7 +342,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createAndLocalizeParentContentWithHotelAndOfferChildren();
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -361,7 +361,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent();
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', '[Translate to Dansk:] Testing #1'));
        }
@@ -374,7 +374,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardLocalizedParent();
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardLocalizedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
        }
@@ -387,7 +387,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyOnlyHotelChild();
                $this->assertAssertionDataSet('modifyOnlyHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -401,7 +401,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentAndChangeHotelChildrenSorting();
                $this->assertAssertionDataSet('modifyParentNChangeHotelChildrenSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #2', 'Hotel #1'));
@@ -415,7 +415,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentWithHotelChild();
                $this->assertAssertionDataSet('modifyParentNHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -429,7 +429,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentWithHotelChildAndDiscardModifiedParent();
                $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardModifiedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
                // Discarding the parent shall not discard the child records
@@ -449,7 +449,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentWithHotelChildAndDiscardAll();
                $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardAll');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -465,7 +465,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentAndAddHotelChild();
                $this->assertAssertionDataSet('modifyParentNAddHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -479,7 +479,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyParentAndDeleteHotelChild();
                $this->assertAssertionDataSet('modifyParentNDeleteHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -496,7 +496,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                parent::modifyAndDiscardAndModifyParentWithHotelChild();
                $this->assertAssertionDataSet('modifyNDiscardNModifyParentWHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
index 125f7e6..dd0256f 100644 (file)
@@ -39,7 +39,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
                $this->assertAssertionDataSet('createParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
        }
@@ -53,7 +53,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
                $this->assertAssertionDataSet('modifyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -70,7 +70,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
                $this->assertAssertionDataSet('deleteParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -85,7 +85,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast, FALSE);
                $this->assertAssertionDataSet('deleteParentContentNDiscardDeletedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -99,7 +99,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
                $this->assertAssertionDataSet('copyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -114,7 +114,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
                $this->assertAssertionDataSet('copyParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -129,7 +129,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
                $this->assertAssertionDataSet('localizeParentContentKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -144,7 +144,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -159,7 +159,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
                $this->assertAssertionDataSet('localizeParentContentSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -174,7 +174,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -189,7 +189,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
                $this->assertAssertionDataSet('changeParentContentSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -207,7 +207,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
                $this->assertAssertionDataSet('moveParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
 
@@ -229,7 +229,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                );
                $this->assertAssertionDataSet('moveParentContentToDifferentPageNChangeSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -253,7 +253,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Page, self::VALUE_PageId);
                $this->assertAssertionDataSet('modifyPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -288,7 +288,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                );
                $this->assertAssertionDataSet('copyPage');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -307,7 +307,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                );
                $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -325,7 +325,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId']);
                $this->assertAssertionDataSet('createParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -343,7 +343,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId']);
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -368,7 +368,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['copiedContentId'], FALSE);
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildrenNDiscardCopiedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
        }
@@ -383,7 +383,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId']);
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -404,7 +404,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['newContentId'], FALSE);
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', '[Translate to Dansk:] Testing #1'));
        }
@@ -420,7 +420,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, $this->recordIds['localizedContentId'], FALSE);
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardLocalizedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
        }
@@ -434,7 +434,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Hotel, 4);
                $this->assertAssertionDataSet('modifyOnlyHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -449,7 +449,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
                $this->assertAssertionDataSet('modifyParentNChangeHotelChildrenSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #2', 'Hotel #1'));
@@ -464,7 +464,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
                $this->assertAssertionDataSet('modifyParentNHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -480,7 +480,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, FALSE);
                $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardModifiedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
                // Discarding the parent shall not discard the child records
@@ -503,7 +503,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, FALSE);
                $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardAll');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -520,7 +520,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
                $this->assertAssertionDataSet('modifyParentNAddHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -535,7 +535,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdFirst);
                $this->assertAssertionDataSet('modifyParentNDeleteHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -558,7 +558,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                );
                $this->assertAssertionDataSet('modifyNDiscardNModifyParentWHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
index cfba98f..a500813 100644 (file)
@@ -39,7 +39,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
        }
@@ -53,7 +53,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -70,7 +70,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('deleteParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -84,7 +84,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('deleteParentContentNDiscardDeletedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
        }
@@ -98,7 +98,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('copyParentContent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -113,7 +113,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('copyParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . $this->recordIds['newContentId'])->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -128,7 +128,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('localizeParentContentKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -143,7 +143,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenKeep');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -158,7 +158,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('localizeParentContentSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureDoesNotHaveRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -173,7 +173,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('localizeParentContentWAllChildrenSelect');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('[Translate to Dansk:] Hotel #1'));
@@ -188,7 +188,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('changeParentContentSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -206,7 +206,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('moveParentContentToDifferentPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2'));
 
@@ -224,7 +224,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('moveParentContentToDifferentPageNChangeSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #2', 'Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -248,7 +248,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyPage');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Page)->setField('title')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -278,7 +278,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('copyPage');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -292,7 +292,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('copyPageWHotelBeforeParentContent');
 
-               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'], 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2', 'Hotel #1'));
        }
@@ -310,7 +310,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -327,7 +327,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -350,7 +350,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createNCopyParentContentNHotelNOfferChildrenNDiscardCopiedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1 (copy 1)'));
        }
@@ -364,7 +364,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildren');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -384,7 +384,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1', '[Translate to Dansk:] Testing #1'));
        }
@@ -398,7 +398,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('createNLocalizeParentContentNHotelNOfferChildrenNDiscardLocalizedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('[Translate to Dansk:] Testing #1'));
        }
@@ -412,7 +412,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyOnlyHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -427,7 +427,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentNChangeHotelChildrenSorting');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #2', 'Hotel #1'));
@@ -442,7 +442,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentNHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdFirst)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Testing #1'));
@@ -457,7 +457,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardModifiedParent');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
                // Discarding the parent shall not discard the child records
@@ -478,7 +478,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentNHotelChildNDiscardAll');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #1'));
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
@@ -495,7 +495,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentNAddHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1', 'Hotel #2'));
@@ -510,7 +510,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyParentNDeleteHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionStructureHasRecordConstraint()
                        ->setRecordIdentifier(self::TABLE_Content . ':' . self::VALUE_ContentIdLast)->setRecordField(self::FIELD_ContentHotel)
                        ->setTable(self::TABLE_Hotel)->setField('title')->setValues('Hotel #1'));
@@ -528,7 +528,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
                $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
                $this->assertAssertionDataSet('modifyNDiscardNModifyParentWHotelChild');
 
-               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections('Default', 'Extbase:list()');
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
                        ->setTable(self::TABLE_Content)->setField('header')->setValues('Testing #1'));
                $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()