[TASK] Streamline DataHandler functional tests 01/51701/4
authorOliver Hader <oliver@typo3.org>
Wed, 15 Feb 2017 15:08:48 +0000 (16:08 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Wed, 15 Feb 2017 16:57:44 +0000 (17:57 +0100)
Live and Workspaces share quite a lot of common test cases which however
are duplicated for each scenario. To ease the integration of new tests
for both scenarios, these superfluous redundancies are removed.

Resolves: #79833
Releases: master
Change-Id: I2ef2ee63d9c052ea5e9a5a8ddae7c63f15abf58d
Reviewed-on: https://review.typo3.org/51701
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/CSV/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/ManyToMany/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/CSV/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/IRRE/ForeignField/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/ManyToMany/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php

index 4d75bc6..8cc8ba0 100644 (file)
@@ -61,7 +61,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
     public function createParentContent()
     {
      */
     public function createParentContent()
     {
-        $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
+        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
+        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
     }
 
     /**
     }
 
     /**
@@ -263,6 +264,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     {
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
     {
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
+        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
     }
 
     /**
     }
 
     /**
@@ -278,6 +281,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
 
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
 
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
+        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
     }
 
     /**
     }
 
     /**
@@ -336,6 +341,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
         $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
         $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
         $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
         $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
         $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
+        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
         $this->recordIds['localizedHotelId'] = $localizedTableIds[self::TABLE_Hotel][$this->recordIds['newHotelId']];
     }
 
         $this->recordIds['localizedHotelId'] = $localizedTableIds[self::TABLE_Hotel][$this->recordIds['newHotelId']];
     }
 
index 81b52e0..8252c7c 100644 (file)
@@ -67,7 +67,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
     public function createParentContent()
     {
      */
     public function createParentContent()
     {
-        $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
+        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
+        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
     }
 
     /**
     }
 
     /**
@@ -272,6 +273,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     {
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
     {
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
+        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
     }
 
     /**
     }
 
     /**
@@ -287,6 +290,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
 
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
 
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
+        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
     }
 
     /**
     }
 
     /**
@@ -344,7 +349,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         );
         $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
         $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
         );
         $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
         $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
-        $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
+        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
+        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
     }
 
     /**
     }
 
     /**
index ca3930a..5f0a6d5 100644 (file)
@@ -146,7 +146,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
     public function copyCategoryOfRelation()
     {
      */
     public function copyCategoryOfRelation()
     {
-        $this->actionService->copyRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, 0);
+        $newTableIds = $this->actionService->copyRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, 0);
+        $this->recordIds['newCategoryId'] = $newTableIds[self::TABLE_Category][self::VALUE_CategoryIdFirst];
     }
 
     /**
     }
 
     /**
@@ -173,7 +174,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
     public function localizeContentOfRelation()
     {
      */
     public function localizeContentOfRelation()
     {
-        $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
+        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
+        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
     }
 
     /**
     }
 
     /**
@@ -182,7 +184,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
     public function localizeCategoryOfRelation()
     {
      */
     public function localizeCategoryOfRelation()
     {
-        $this->actionService->localizeRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, self::VALUE_LanguageId);
+        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, self::VALUE_LanguageId);
+        $this->recordIds['localizedCategoryId'] = $localizedTableIds[self::TABLE_Category][self::VALUE_CategoryIdFirst];
     }
 
     /**
     }
 
     /**
index 6662fbf..0937e6b 100644 (file)
@@ -30,6 +30,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     const VALUE_LanguageIdSecond = 2;
 
     const TABLE_Page = 'pages';
     const VALUE_LanguageIdSecond = 2;
 
     const TABLE_Page = 'pages';
+    const TABLE_PageOverlay = 'pages_language_overlay';
     const TABLE_Content = 'tt_content';
 
     /**
     const TABLE_Content = 'tt_content';
 
     /**
@@ -52,19 +53,19 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
 
     /**
      */
 
     /**
-     * @test
      * @see DataSet/createContentRecords.csv
      */
     public function createContents()
     {
         // Creating record at the beginning of the page
      * @see DataSet/createContentRecords.csv
      */
     public function createContents()
     {
         // Creating record at the beginning of the page
-        $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
+        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
+        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][0];
         // Creating record at the end of the page (after last one)
         // Creating record at the end of the page (after last one)
-        $this->actionService->createNewRecord(self::TABLE_Content, -self::VALUE_ContentIdSecond, ['header' => 'Testing #2']);
+        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, -self::VALUE_ContentIdSecond, ['header' => 'Testing #2']);
+        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][0];
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/modifyContentRecord.csv
      */
     public function modifyContent()
      * @see DataSet/modifyContentRecord.csv
      */
     public function modifyContent()
@@ -73,7 +74,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/deleteContentRecord.csv
      */
     public function deleteContent()
      * @see DataSet/deleteContentRecord.csv
      */
     public function deleteContent()
@@ -91,36 +91,35 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/copyContentRecord.csv
      */
     public function copyContent()
     {
      * @see DataSet/copyContentRecord.csv
      */
     public function copyContent()
     {
-        $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageId);
+        $copiedTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageId);
+        $this->recordIds['copiedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/copyContentToLanguage.csv
      */
     public function copyContentToLanguage()
     {
      * @see DataSet/copyContentToLanguage.csv
      */
     public function copyContentToLanguage()
     {
-        $this->actionService->copyRecordToLanguage(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_LanguageId);
+        $copiedTableIds = $this->actionService->copyRecordToLanguage(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_LanguageId);
+        $this->recordIds['localizedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
     }
 
     /**
      * Free mode "translation" of a record in non default language
      *
     }
 
     /**
      * Free mode "translation" of a record in non default language
      *
-     * @test
      * @see DataSet/copyContentToLanguageFromNonDefaultLanguage.csv
      */
     public function copyContentToLanguageFromNonDefaultLanguage()
     {
      * @see DataSet/copyContentToLanguageFromNonDefaultLanguage.csv
      */
     public function copyContentToLanguageFromNonDefaultLanguage()
     {
-        $this->actionService->copyRecordToLanguage(self::TABLE_Content, self::VALUE_ContentIdThirdLocalized, self::VALUE_LanguageIdSecond);
+        $copiedTableIds = $this->actionService->copyRecordToLanguage(self::TABLE_Content, self::VALUE_ContentIdThirdLocalized, self::VALUE_LanguageIdSecond);
+        $this->recordIds['localizedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdThirdLocalized];
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/copyPasteContent.csv
      */
     public function copyPasteContent()
      * @see DataSet/copyPasteContent.csv
      */
     public function copyPasteContent()
@@ -129,7 +128,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/localizeContentRecord.csv
      */
     public function localizeContent()
      * @see DataSet/localizeContentRecord.csv
      */
     public function localizeContent()
@@ -147,7 +145,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/localizeContentFromNonDefaultLanguage.csv
      */
     public function localizeContentFromNonDefaultLanguage()
      * @see DataSet/localizeContentFromNonDefaultLanguage.csv
      */
     public function localizeContentFromNonDefaultLanguage()
@@ -165,7 +162,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/changeContentRecordSorting.csv
      */
     public function changeContentSorting()
      * @see DataSet/changeContentRecordSorting.csv
      */
     public function changeContentSorting()
@@ -174,7 +170,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/moveContentRecordToDifferentPage.csv
      */
     public function moveContentToDifferentPage()
      * @see DataSet/moveContentRecordToDifferentPage.csv
      */
     public function moveContentToDifferentPage()
@@ -183,7 +178,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/movePasteContentToDifferentPage.csv
      */
     public function movePasteContentToDifferentPage()
      * @see DataSet/movePasteContentToDifferentPage.csv
      */
     public function movePasteContentToDifferentPage()
@@ -192,7 +186,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/moveContentRecordToDifferentPageAndChangeSorting.csv
      */
     public function moveContentToDifferentPageAndChangeSorting()
      * @see DataSet/moveContentRecordToDifferentPageAndChangeSorting.csv
      */
     public function moveContentToDifferentPageAndChangeSorting()
@@ -206,7 +199,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
 
     /**
      */
 
     /**
-     * @test
      * @see DataSet/createPageRecord.csv
      */
     public function createPage()
      * @see DataSet/createPageRecord.csv
      */
     public function createPage()
@@ -216,7 +208,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/modifyPageRecord.csv
      */
     public function modifyPage()
      * @see DataSet/modifyPageRecord.csv
      */
     public function modifyPage()
@@ -225,7 +216,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/deletePageRecord.csv
      */
     public function deletePage()
      * @see DataSet/deletePageRecord.csv
      */
     public function deletePage()
@@ -234,17 +224,17 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/copyPage.csv
      */
     public function copyPage()
     {
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
      * @see DataSet/copyPage.csv
      */
     public function copyPage()
     {
         $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
+        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/copyPageFreeMode.csv
      */
     public function copyPageFreeMode()
      * @see DataSet/copyPageFreeMode.csv
      */
     public function copyPageFreeMode()
@@ -254,13 +244,13 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/localizePageRecord.csv
      */
     public function localizePage()
     {
         $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
         $this->recordIds['localizedPageId'] = $localizedTableIds[self::TABLE_Page][self::VALUE_PageId];
      * @see DataSet/localizePageRecord.csv
      */
     public function localizePage()
     {
         $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
         $this->recordIds['localizedPageId'] = $localizedTableIds[self::TABLE_Page][self::VALUE_PageId];
+        $this->recordIds['localizedPageOverlayId'] = $localizedTableIds[self::TABLE_PageOverlay][self::VALUE_PageId];
     }
 
     public function localizePageWithLanguageSynchronization()
     }
 
     public function localizePageWithLanguageSynchronization()
@@ -272,7 +262,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/changePageRecordSorting.csv
      */
     public function changePageSorting()
      * @see DataSet/changePageRecordSorting.csv
      */
     public function changePageSorting()
@@ -281,7 +270,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/movePageRecordToDifferentPage.csv
      */
     public function movePageToDifferentPage()
      * @see DataSet/movePageRecordToDifferentPage.csv
      */
     public function movePageToDifferentPage()
@@ -290,7 +278,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @test
      * @see DataSet/movePageRecordToDifferentPageAndChangeSorting.csv
      */
     public function movePageToDifferentPageAndChangeSorting()
      * @see DataSet/movePageRecordToDifferentPageAndChangeSorting.csv
      */
     public function movePageToDifferentPageAndChangeSorting()
index e0dca3b..435fd51 100644 (file)
@@ -17,27 +17,10 @@ namespace TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\CSV;
 /**
  * Functional test for the DataHandler
  */
 /**
  * Functional test for the DataHandler
  */
-abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
+abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\CSV\AbstractActionTestCase
 {
 {
-    const VALUE_PageId = 89;
-    const VALUE_PageIdTarget = 90;
-    const VALUE_PageIdWebsite = 1;
-    const VALUE_ContentIdFirst = 297;
-    const VALUE_ContentIdLast = 298;
-    const VALUE_HotelIdFirst = 3;
-    const VALUE_HotelIdSecond = 4;
-    const VALUE_HotelIdThird = 5;
-    const VALUE_LanguageId = 1;
     const VALUE_WorkspaceId = 1;
 
     const VALUE_WorkspaceId = 1;
 
-    const TABLE_Page = 'pages';
-    const TABLE_Content = 'tt_content';
-    const TABLE_Hotel = 'tx_irretutorial_1ncsv_hotel';
-    const TABLE_Offer = 'tx_irretutorial_1ncsv_offer';
-
-    const FIELD_ContentHotel = 'tx_irretutorial_1ncsv_hotels';
-    const FIELD_HotelOffer = 'offers';
-
     /**
      * @var string
      */
     /**
      * @var string
      */
@@ -55,11 +38,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     protected function setUp()
     {
         parent::setUp();
     protected function setUp()
     {
         parent::setUp();
-        $this->importScenarioDataSet('LiveDefaultPages');
-        $this->importScenarioDataSet('LiveDefaultElements');
         $this->importScenarioDataSet('ReferenceIndex');
         $this->importScenarioDataSet('ReferenceIndex');
-
-        $this->setUpFrontendRootPage(1, ['typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts']);
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
@@ -68,31 +47,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
 
     /**
      */
 
     /**
-     * @see DataSet/createParentContentRecord.csv
-     */
-    public function createParentContent()
-    {
-        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-    }
-
-    /**
-     * @see DataSet/modifyParentContentRecord.csv
-     */
-    public function modifyParentContent()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, ['header' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deleteParentContentRecord.csv
-     */
-    public function deleteParentContent()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
-    }
-
-    /**
      * @see DataSet/deleteParentContentRecordAndDiscardDeletedParentRecord.csv
      */
     public function deleteParentContentAndDiscardDeletedParent()
      * @see DataSet/deleteParentContentRecordAndDiscardDeletedParentRecord.csv
      */
     public function deleteParentContentAndDiscardDeletedParent()
@@ -103,187 +57,10 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/copyParentContentRecord.csv
-     */
-    public function copyParentContent()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageId);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/copyParentContentToDifferentPage.csv
-     */
-    public function copyParentContentToDifferentPage()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentKeep.csv
-     */
-    public function localizeParentContentInKeepMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'keep';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentWAllChildrenKeep.csv
-     */
-    public function localizeParentContentWithAllChildrenInKeepMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'keep';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentSelect.csv
-     */
-    public function localizeParentContentInSelectMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'select';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentWAllChildrenSelect.csv
-     */
-    public function localizeParentContentWithAllChildrenInSelectMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'select';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/changeParentContentRecordSorting.csv
-     */
-    public function changeParentContentSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
-    }
-
-    /**
-     * @see DataSet/moveParentContentRecordToDifferentPage.csv
-     */
-    public function moveParentContentToDifferentPage()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-    }
-
-    /**
-     * @see DataSet/moveParentContentRecordToDifferentPageAndChangeSorting.csv
-     */
-    public function moveParentContentToDifferentPageAndChangeSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
-    }
-
-    /**
-     * Page records
-     */
-
-    /**
-     * @see DataSet/modifyPageRecord.csv
-     */
-    public function modifyPage()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Page, self::VALUE_PageId, ['title' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deletePageRecord.csv
-     */
-    public function deletePage()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Page, self::VALUE_PageId);
-    }
-
-    /**
-     * @see DataSet/copyPageRecord.csv
-     */
-    public function copyPage()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @test
-     * @see DataSet/copyPageWHotelBeforeParentContent.csv
-     */
-    public function copyPageWithHotelBeforeParentContent()
-    {
-        // Ensure hotels get processed first
-        $GLOBALS['TCA'] = array_merge(
-            [self::TABLE_Hotel => $GLOBALS['TCA'][self::TABLE_Hotel]],
-            $GLOBALS['TCA']
-        );
-
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
      * IRRE Child Records
      */
 
     /**
      * IRRE Child Records
      */
 
     /**
-     * @see DataSet/createParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createParentContentWithHotelAndOfferChildren()
-    {
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-    }
-
-    /**
-     * @see DataSet/createAndCopyParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createAndCopyParentContentWithHotelAndOfferChildren()
-    {
-        // @todo Copying the new child records is broken in the Core
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-        $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
-        $copiedTableIds = $this->actionService->copyRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_PageId);
-        $this->recordIds['copiedContentId'] = $copiedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
-        $this->recordIds['copiedHotelId'] = $copiedTableIds[self::TABLE_Hotel][$this->recordIds['newHotelId']];
-    }
-
-    /**
      * @see DataSet/createAndCopyParentContentRecordWithHotelAndOfferChildRecordsAndDiscardCopiedParentRecord.csv
      */
     public function createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent()
      * @see DataSet/createAndCopyParentContentRecordWithHotelAndOfferChildRecordsAndDiscardCopiedParentRecord.csv
      */
     public function createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent()
@@ -305,27 +82,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/createAndLocalizeParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createAndLocalizeParentContentWithHotelAndOfferChildren()
-    {
-        // @todo Localizing the new child records is broken in the Core
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-        $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
-        $this->recordIds['localizedHotelId'] = $localizedTableIds[self::TABLE_Hotel][$this->recordIds['newHotelId']];
-    }
-
-    /**
      * @see DataSet/createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv
      */
     public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent()
      * @see DataSet/createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv
      */
     public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent()
@@ -367,36 +123,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/modifyOnlyHotelChildRecord.csv
-     */
-    public function modifyOnlyHotelChild()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Hotel, 4, ['title' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/modifyParentRecordAndChangeHotelChildRecordsSorting.csv
-     */
-    public function modifyParentAndChangeHotelChildrenSorting()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, [self::FIELD_ContentHotel => '4,3']);
-    }
-
-    /**
-     * @see DataSet/modifyParentRecordWithHotelChildRecord.csv
-     */
-    public function modifyParentWithHotelChild()
-    {
-        $this->actionService->modifyRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['uid' => self::VALUE_ContentIdFirst, self::FIELD_ContentHotel => '3,4'],
-                self::TABLE_Hotel => ['uid' => 4, 'title' => 'Testing #1'],
-            ]
-        );
-    }
-
-    /**
      * @see DataSet/modifyParentRecordWithHotelChildRecordAndDiscardModifiedParentRecord.csv
      */
     public function modifyParentWithHotelChildAndDiscardModifiedParent()
      * @see DataSet/modifyParentRecordWithHotelChildRecordAndDiscardModifiedParentRecord.csv
      */
     public function modifyParentWithHotelChildAndDiscardModifiedParent()
@@ -435,33 +161,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/modifyParentRecordAndAddHotelChildRecord.csv
-     */
-    public function modifyParentAndAddHotelChild()
-    {
-        $this->actionService->modifyRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['uid' => self::VALUE_ContentIdLast, self::FIELD_ContentHotel => '5,__nextUid'],
-                self::TABLE_Hotel => ['uid' => '__NEW', 'title' => 'Hotel #2'],
-            ]
-        );
-    }
-
-    /**
-     * @see DataSet/modifyParentRecordAndDeleteHotelChildRecord.csv
-     */
-    public function modifyParentAndDeleteHotelChild()
-    {
-        $this->actionService->modifyRecord(
-            self::TABLE_Content,
-            self::VALUE_ContentIdFirst,
-            [self::FIELD_ContentHotel => '3'],
-            [self::TABLE_Hotel => [4]]
-        );
-    }
-
-    /**
      * @see DataSet/modifyNDiscardNModifyParentWHotelChild.csv
      */
     public function modifyAndDiscardAndModifyParentWithHotelChild()
      * @see DataSet/modifyNDiscardNModifyParentWHotelChild.csv
      */
     public function modifyAndDiscardAndModifyParentWithHotelChild()
index 9b38b97..9a43f9b 100644 (file)
@@ -17,27 +17,10 @@ namespace TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRRE\ForeignField;
 /**
  * Functional test for the DataHandler
  */
 /**
  * Functional test for the DataHandler
  */
-abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
+abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\IRRE\ForeignField\AbstractActionTestCase
 {
 {
-    const VALUE_PageId = 89;
-    const VALUE_PageIdTarget = 90;
-    const VALUE_PageIdWebsite = 1;
-    const VALUE_ContentIdFirst = 297;
-    const VALUE_ContentIdLast = 298;
-    const VALUE_HotelIdFirst = 3;
-    const VALUE_HotelIdSecond = 4;
-    const VALUE_HotelIdThird = 5;
-    const VALUE_LanguageId = 1;
     const VALUE_WorkspaceId = 1;
 
     const VALUE_WorkspaceId = 1;
 
-    const TABLE_Page = 'pages';
-    const TABLE_Content = 'tt_content';
-    const TABLE_Hotel = 'tx_irretutorial_1nff_hotel';
-    const TABLE_Offer = 'tx_irretutorial_1nff_offer';
-
-    const FIELD_ContentHotel = 'tx_irretutorial_1nff_hotels';
-    const FIELD_HotelOffer = 'offers';
-
     /**
      * @var string
      */
     /**
      * @var string
      */
@@ -55,17 +38,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     protected function setUp()
     {
         parent::setUp();
     protected function setUp()
     {
         parent::setUp();
-        $this->importScenarioDataSet('LiveDefaultPages');
-        $this->importScenarioDataSet('LiveDefaultElements');
         $this->importScenarioDataSet('ReferenceIndex');
         $this->importScenarioDataSet('ReferenceIndex');
-
-        $this->setUpFrontendRootPage(
-            1,
-            [
-                'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts',
-                'typo3/sysext/core/Tests/Functional/Fixtures/Frontend/ExtbaseJsonRenderer.ts',
-            ]
-        );
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
@@ -74,31 +47,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
 
     /**
      */
 
     /**
-     * @see DataSet/createParentContentRecord.csv
-     */
-    public function createParentContent()
-    {
-        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-    }
-
-    /**
-     * @see DataSet/modifyParentContentRecord.csv
-     */
-    public function modifyParentContent()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, ['header' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deleteParentContentRecord.csv
-     */
-    public function deleteParentContent()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
-    }
-
-    /**
      * @see DataSet/deleteParentContentRecordAndDiscardDeletedParentRecord.csv
      */
     public function deleteParentContentAndDiscardDeletedParent()
      * @see DataSet/deleteParentContentRecordAndDiscardDeletedParentRecord.csv
      */
     public function deleteParentContentAndDiscardDeletedParent()
@@ -109,186 +57,10 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/copyParentContentRecord.csv
-     */
-    public function copyParentContent()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageId);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/copyParentContentToDifferentPage.csv
-     */
-    public function copyParentContentToDifferentPage()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentKeep.csv
-     */
-    public function localizeParentContentInKeepMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'keep';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentWAllChildrenKeep.csv
-     */
-    public function localizeParentContentWithAllChildrenInKeepMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'keep';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentSelect.csv
-     */
-    public function localizeParentContentInSelectMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'select';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = false;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeParentContentWAllChildrenSelect.csv
-     */
-    public function localizeParentContentWithAllChildrenInSelectMode()
-    {
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizationMode'] = 'select';
-        $GLOBALS['TCA'][self::TABLE_Content]['columns'][self::FIELD_ContentHotel]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $GLOBALS['TCA'][self::TABLE_Hotel]['columns'][self::FIELD_HotelOffer]['config']['behaviour']['localizeChildrenAtParentLocalization'] = true;
-        $newTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/changeParentContentRecordSorting.csv
-     */
-    public function changeParentContentSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
-    }
-
-    /**
-     * @see DataSet/moveParentContentRecordToDifferentPage.csv
-     */
-    public function moveParentContentToDifferentPage()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-    }
-
-    /**
-     * @see DataSet/moveParentContentRecordToDifferentPageAndChangeSorting.csv
-     */
-    public function moveParentContentToDifferentPageAndChangeSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
-    }
-
-    /**
-     * Page records
-     */
-
-    /**
-     * @see DataSet/modifyPageRecord.csv
-     */
-    public function modifyPage()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Page, self::VALUE_PageId, ['title' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deletePageRecord.csv
-     */
-    public function deletePage()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Page, self::VALUE_PageId);
-    }
-
-    /**
-     * @see DataSet/copyPageRecord.csv
-     */
-    public function copyPage()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @test
-     * @see DataSet/copyPageWHotelBeforeParentContent.csv
-     */
-    public function copyPageWithHotelBeforeParentContent()
-    {
-        // Ensure hotels get processed first
-        $GLOBALS['TCA'] = array_merge(
-            [self::TABLE_Hotel => $GLOBALS['TCA'][self::TABLE_Hotel]],
-            $GLOBALS['TCA']
-        );
-
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
      * IRRE Child Records
      */
 
     /**
      * IRRE Child Records
      */
 
     /**
-     * @see DataSet/createParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createParentContentWithHotelAndOfferChildren()
-    {
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-    }
-
-    /**
-     * @see DataSet/createAndCopyParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createAndCopyParentContentWithHotelAndOfferChildren()
-    {
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-        $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
-        $copiedTableIds = $this->actionService->copyRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_PageId);
-        $this->recordIds['copiedContentId'] = $copiedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
-        $this->recordIds['copiedHotelId'] = $copiedTableIds[self::TABLE_Hotel][$this->recordIds['newHotelId']];
-    }
-
-    /**
      * @see DataSet/createAndCopyParentContentRecordWithHotelAndOfferChildRecordsAndDiscardCopiedParentRecord.csv
      */
     public function createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent()
      * @see DataSet/createAndCopyParentContentRecordWithHotelAndOfferChildRecordsAndDiscardCopiedParentRecord.csv
      */
     public function createAndCopyParentContentWithHotelAndOfferChildrenAndDiscardCopiedParent()
@@ -309,45 +81,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/createAndLocalizeParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createAndLocalizeParentContentWithHotelAndOfferChildren()
-    {
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-        $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
-    }
-
-    /**
-     * @see DataSet/createAndLocalizeParentContentRecordWithHotelAndOfferChildRecords.csv
-     */
-    public function createAndLocalizeParentContentWithHotelAndOfferChildrenWithoutSortByConfiguration()
-    {
-        unset($GLOBALS['TCA'][self::TABLE_Hotel]['ctrl']['sortby']);
-        $newTableIds = $this->actionService->createNewRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['header' => 'Testing #1', self::FIELD_ContentHotel => '__nextUid'],
-                self::TABLE_Hotel => ['title' => 'Hotel #1', self::FIELD_HotelOffer => '__nextUid'],
-                self::TABLE_Offer => ['title' => 'Offer #1'],
-            ]
-        );
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
-        $this->recordIds['newHotelId'] = $newTableIds[self::TABLE_Hotel][0];
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, $this->recordIds['newContentId'], self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][$this->recordIds['newContentId']];
-    }
-
-    /**
      * @see DataSet/createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv
      */
     public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent()
      * @see DataSet/createNLocalizeParentContentNHotelNOfferChildrenNDiscardCreatedParent.csv
      */
     public function createAndLocalizeParentContentWithHotelAndOfferChildrenAndDiscardCreatedParent()
@@ -388,36 +121,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/modifyOnlyHotelChildRecord.csv
-     */
-    public function modifyOnlyHotelChild()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Hotel, 4, ['title' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/modifyParentRecordAndChangeHotelChildRecordsSorting.csv
-     */
-    public function modifyParentAndChangeHotelChildrenSorting()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, [self::FIELD_ContentHotel => '4,3']);
-    }
-
-    /**
-     * @see DataSet/modifyParentRecordWithHotelChildRecord.csv
-     */
-    public function modifyParentWithHotelChild()
-    {
-        $this->actionService->modifyRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['uid' => self::VALUE_ContentIdFirst, self::FIELD_ContentHotel => '3,4'],
-                self::TABLE_Hotel => ['uid' => 4, 'title' => 'Testing #1'],
-            ]
-        );
-    }
-
-    /**
      * @see DataSet/modifyParentRecordWithHotelChildRecordAndDiscardModifiedParentRecord.csv
      */
     public function modifyParentWithHotelChildAndDiscardModifiedParent()
      * @see DataSet/modifyParentRecordWithHotelChildRecordAndDiscardModifiedParentRecord.csv
      */
     public function modifyParentWithHotelChildAndDiscardModifiedParent()
@@ -456,33 +159,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/modifyParentRecordAndAddHotelChildRecord.csv
-     */
-    public function modifyParentAndAddHotelChild()
-    {
-        $this->actionService->modifyRecords(
-            self::VALUE_PageId,
-            [
-                self::TABLE_Content => ['uid' => self::VALUE_ContentIdLast, self::FIELD_ContentHotel => '5,__nextUid'],
-                self::TABLE_Hotel => ['uid' => '__NEW', 'title' => 'Hotel #2'],
-            ]
-        );
-    }
-
-    /**
-     * @see DataSet/modifyParentRecordAndDeleteHotelChildRecord.csv
-     */
-    public function modifyParentAndDeleteHotelChild()
-    {
-        $this->actionService->modifyRecord(
-            self::TABLE_Content,
-            self::VALUE_ContentIdFirst,
-            [self::FIELD_ContentHotel => '3'],
-            [self::TABLE_Hotel => [4]]
-        );
-    }
-
-    /**
      * @see DataSet/modifyNDiscardNModifyParentWHotelChild.csv
      */
     public function modifyAndDiscardAndModifyParentWithHotelChild()
      * @see DataSet/modifyNDiscardNModifyParentWHotelChild.csv
      */
     public function modifyAndDiscardAndModifyParentWithHotelChild()
index 7db5ffa..8763fd0 100644 (file)
@@ -17,23 +17,11 @@ namespace TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\ManyToMany;
 /**
  * Functional test for the DataHandler
  */
 /**
  * Functional test for the DataHandler
  */
-abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
+abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\ManyToMany\AbstractActionTestCase
 {
 {
-    const VALUE_PageId = 89;
-    const VALUE_PageIdTarget = 90;
-    const VALUE_ContentIdFirst = 297;
-    const VALUE_ContentIdLast = 298;
-    const VALUE_LanguageId = 1;
-    const VALUE_CategoryIdFirst = 28;
-    const VALUE_CategoryIdSecond = 29;
     const VALUE_CategoryIdLast = 31;
     const VALUE_WorkspaceId = 1;
 
     const VALUE_CategoryIdLast = 31;
     const VALUE_WorkspaceId = 1;
 
-    const TABLE_Page = 'pages';
-    const TABLE_Content = 'tt_content';
-    const TABLE_Category = 'sys_category';
-    const TABLE_ContentCategory_ManyToMany = 'sys_category_record_mm';
-
     /**
      * @var string
      */
     /**
      * @var string
      */
@@ -51,11 +39,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     protected function setUp()
     {
         parent::setUp();
     protected function setUp()
     {
         parent::setUp();
-        $this->importScenarioDataSet('LiveDefaultPages');
-        $this->importScenarioDataSet('LiveDefaultElements');
         $this->importScenarioDataSet('ReferenceIndex');
         $this->importScenarioDataSet('ReferenceIndex');
-
-        $this->setUpFrontendRootPage(1, ['typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts']);
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
@@ -65,39 +49,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
 
     /**
      * @test
 
     /**
      * @test
-     * @see DataSet/addCategoryRelation.csv
-     */
-    public function addCategoryRelation()
-    {
-        $this->actionService->modifyReferences(
-            self::TABLE_Content, self::VALUE_ContentIdFirst, 'categories', [self::VALUE_CategoryIdFirst, self::VALUE_CategoryIdSecond, self::VALUE_CategoryIdLast]
-        );
-    }
-
-    /**
-     * @test
-     * @see DataSet/deleteCategoryRelation.csv
-     */
-    public function deleteCategoryRelation()
-    {
-        $this->actionService->modifyReferences(
-            self::TABLE_Content, self::VALUE_ContentIdFirst, 'categories', [self::VALUE_CategoryIdFirst]
-        );
-    }
-
-    /**
-     * @test
-     * @see DataSet/changeCategoryRelationSorting.csv
-     */
-    public function changeCategoryRelationSorting()
-    {
-        $this->actionService->modifyReferences(
-            self::TABLE_Content, self::VALUE_ContentIdFirst, 'categories', [self::VALUE_CategoryIdSecond, self::VALUE_CategoryIdFirst]
-        );
-    }
-
-    /**
-     * @test
      * @see DataSet/createContentRecordAndAddCategoryRelation.csv
      */
     public function createContentAndAddRelation()
      * @see DataSet/createContentRecordAndAddCategoryRelation.csv
      */
     public function createContentAndAddRelation()
@@ -187,100 +138,4 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
             self::TABLE_Category, $this->recordIds['newCategoryId'], ['items' => 'tt_content_' . $this->recordIds['newContentId']]
         );
     }
             self::TABLE_Category, $this->recordIds['newCategoryId'], ['items' => 'tt_content_' . $this->recordIds['newContentId']]
         );
     }
-
-    /**
-     * @see DataSet/modifyCategoryRecordOfCategoryRelation.csv
-     */
-    public function modifyCategoryOfRelation()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, ['title' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/modifyContentRecordOfCategoryRelation.csv
-     */
-    public function modifyContentOfRelation()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, ['header' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/modifyBothRecordsOfCategoryRelation.csv
-     */
-    public function modifyBothsOfRelation()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, ['title' => 'Testing #1']);
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, ['header' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deleteContentRecordOfCategoryRelation.csv
-     */
-    public function deleteContentOfRelation()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
-    }
-
-    /**
-     * @see DataSet/deleteCategoryRecordOfCategoryRelation.csv
-     */
-    public function deleteCategoryOfRelation()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst);
-    }
-
-    /**
-     * @see DataSet/copyContentRecordOfCategoryRelation.csv
-     */
-    public function copyContentOfRelation()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageId);
-        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/copyCategoryRecordOfCategoryRelation.csv
-     */
-    public function copyCategoryOfRelation()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, 0);
-        $this->recordIds['newCategoryId'] = $newTableIds[self::TABLE_Category][self::VALUE_CategoryIdFirst];
-    }
-
-    /**
-     * @see DataSet/localizeContentRecordOfCategoryRelation.csv
-     */
-    public function localizeContentOfRelation()
-    {
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
-
-    /**
-     * @see DataSet/localizeCategoryRecordOfCategoryRelation.csv
-     */
-    public function localizeCategoryOfRelation()
-    {
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Category, self::VALUE_CategoryIdFirst, self::VALUE_LanguageId);
-        $this->recordIds['localizedCategoryId'] = $localizedTableIds[self::TABLE_Category][self::VALUE_CategoryIdFirst];
-    }
-
-    /**
-     * @see DataSet/moveContentRecordOfCategoryRelationToDifferentPage.csv
-     */
-    public function moveContentOfRelationToDifferentPage()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-    }
-
-    /**
-     * @see DataSet/copyPage.csv
-     */
-    public function copyPage()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
-    }
 }
 }
index 7a7e45a..e353d7d 100644 (file)
@@ -17,30 +17,17 @@ namespace TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Regular;
 /**
  * Functional test for the DataHandler
  */
 /**
  * Functional test for the DataHandler
  */
-abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase
+abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\AbstractActionTestCase
 {
     const VALUE_ParentPageId = 88;
 {
     const VALUE_ParentPageId = 88;
-    const VALUE_PageId = 89;
-    const VALUE_PageIdTarget = 90;
-    const VALUE_PageIdWebsite = 1;
     const VALUE_ContentIdZero = 296;
     const VALUE_ContentIdZero = 296;
-    const VALUE_ContentIdFirst = 297;
-    const VALUE_ContentIdSecond = 298;
-    const VALUE_ContentIdThird = 299;
-    const VALUE_ContentIdThirdLocalized = 300;
 
     const VALUE_ContentIdTenth = 310;
     const VALUE_ContentIdTenthLocalized = 311;
     const VALUE_ContentIdTenthLocalized2 = 312;
 
 
     const VALUE_ContentIdTenth = 310;
     const VALUE_ContentIdTenthLocalized = 311;
     const VALUE_ContentIdTenthLocalized2 = 312;
 
-    const VALUE_LanguageId = 1;
-    const VALUE_LanguageIdSecond = 2;
     const VALUE_WorkspaceId = 1;
 
     const VALUE_WorkspaceId = 1;
 
-    const TABLE_Page = 'pages';
-    const TABLE_PageOverlay = 'pages_language_overlay';
-    const TABLE_Content = 'tt_content';
-
     /**
      * @var array
      */
     /**
      * @var array
      */
@@ -58,11 +45,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     protected function setUp()
     {
         parent::setUp();
     protected function setUp()
     {
         parent::setUp();
-        $this->importScenarioDataSet('LiveDefaultPages');
-        $this->importScenarioDataSet('LiveDefaultElements');
         $this->importScenarioDataSet('ReferenceIndex');
         $this->importScenarioDataSet('ReferenceIndex');
-
-        $this->setUpFrontendRootPage(1, ['typo3/sysext/core/Tests/Functional/Fixtures/Frontend/JsonRenderer.ts']);
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
         $this->backendUser->workspace = self::VALUE_WorkspaceId;
     }
 
@@ -71,19 +54,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
      */
 
     /**
      */
 
     /**
-     * @see DataSet/createContentRecords.csv
-     */
-    public function createContents()
-    {
-        // Creating record at the beginning of the page
-        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, ['header' => 'Testing #1']);
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][0];
-        // Creating record at the end of the page (after last one)
-        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, -self::VALUE_ContentIdSecond, ['header' => 'Testing #2']);
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][0];
-    }
-
-    /**
      * @see DataSet/createContentRecordAndDiscardCreatedContentRecord.csv
      */
     public function createContentAndDiscardCreatedContent()
      * @see DataSet/createContentRecordAndDiscardCreatedContentRecord.csv
      */
     public function createContentAndDiscardCreatedContent()
@@ -108,87 +78,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/modifyContentRecord.csv
-     */
-    public function modifyContent()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, ['header' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deleteContentRecord.csv
-     */
-    public function deleteContent()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
-    }
-
-    /**
-     * @see DataSet/deleteLocalizedContentNDeleteContent.csv
-     */
-    public function deleteLocalizedContentAndDeleteContent()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdThirdLocalized);
-        $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdThird);
-    }
-
-    /**
-     * @see DataSet/copyContentRecord.csv
-     */
-    public function copyContent()
-    {
-        $copiedTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageId);
-        $this->recordIds['copiedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
-    }
-
-    /**
-     * @see DataSet/copyContentToLanguage.csv
-     */
-    public function copyContentToLanguage()
-    {
-        $copiedTableIds = $this->actionService->copyRecordToLanguage(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
-    }
-
-    /**
-     * Free mode "translation" of a record in non default language
-     *
-     * @test
-     * @see DataSet/copyContentToLanguageFromNonDefaultLanguage.csv
-     */
-    public function copyContentToLanguageFromNonDefaultLanguage()
-    {
-        $copiedTableIds = $this->actionService->copyRecordToLanguage(self::TABLE_Content, self::VALUE_ContentIdThirdLocalized, self::VALUE_LanguageIdSecond);
-        $this->recordIds['localizedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdThirdLocalized];
-    }
-
-    /**
-     * @see DataSet/localizeContentRecord.csv
-     */
-    public function localizeContent()
-    {
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_LanguageId);
-        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
-    }
-
-    /**
-     * @see DataSet/localizeContentRecord.csv
-     */
-    public function localizeContentFromNonDefaultLanguage()
-    {
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdThirdLocalized, self::VALUE_LanguageIdSecond);
-        $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][self::VALUE_ContentIdThirdLocalized];
-    }
-
-    /**
-     * @see DataSet/changeContentRecordSorting.csv
-     */
-    public function changeContentSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdSecond);
-    }
-
-    /**
      * @see DataSet/changeContentSortingNDeleteMovedRecord.csv
      */
     public function changeContentSortingAndDeleteMovedRecord()
      * @see DataSet/changeContentSortingNDeleteMovedRecord.csv
      */
     public function changeContentSortingAndDeleteMovedRecord()
@@ -211,52 +100,10 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/moveContentRecordToDifferentPage.csv
-     */
-    public function moveContentToDifferentPage()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget);
-    }
-
-    /**
-     * @see DataSet/moveContentRecordToDifferentPageAndChangeSorting.csv
-     */
-    public function moveContentToDifferentPageAndChangeSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget);
-        $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdSecond);
-    }
-
-    /**
      * Page records
      */
 
     /**
      * Page records
      */
 
     /**
-     * @see DataSet/createPageRecord.csv
-     */
-    public function createPage()
-    {
-        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Page, self::VALUE_PageId, ['title' => 'Testing #1', 'hidden' => 0]);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][0];
-    }
-
-    /**
-     * @see DataSet/modifyPageRecord.csv
-     */
-    public function modifyPage()
-    {
-        $this->actionService->modifyRecord(self::TABLE_Page, self::VALUE_PageId, ['title' => 'Testing #1']);
-    }
-
-    /**
-     * @see DataSet/deletePageRecord.csv
-     */
-    public function deletePage()
-    {
-        $this->actionService->deleteRecord(self::TABLE_Page, self::VALUE_PageId);
-    }
-
-    /**
      * @see DataSet/deleteContentAndPage.csv
      */
     public function deleteContentAndPage()
      * @see DataSet/deleteContentAndPage.csv
      */
     public function deleteContentAndPage()
@@ -266,18 +113,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/copyPageRecord.csv
-     */
-    public function copyPage()
-    {
-        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-        $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
-        $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-        $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
-    }
-
-    /**
-     * @test
      * @see DataSet/copyPageFreeMode.csv
      */
     public function copyPageFreeMode()
      * @see DataSet/copyPageFreeMode.csv
      */
     public function copyPageFreeMode()
@@ -290,40 +125,6 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
     }
 
     /**
     }
 
     /**
-     * @see DataSet/localizePageRecord.csv
-     */
-    public function localizePage()
-    {
-        $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_LanguageId);
-        $this->recordIds['localizedPageOverlayId'] = $localizedTableIds[self::TABLE_PageOverlay][self::VALUE_PageId];
-    }
-
-    /**
-     * @see DataSet/changePageRecordSorting.csv
-     */
-    public function changePageSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Page, self::VALUE_PageId, -self::VALUE_PageIdTarget);
-    }
-
-    /**
-     * @see DataSet/movePageRecordToDifferentPage.csv
-     */
-    public function movePageToDifferentPage()
-    {
-        $this->actionService->moveRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
-    }
-
-    /**
-     * @see DataSet/movePageRecordToDifferentPageAndChangeSorting.csv
-     */
-    public function movePageToDifferentPageAndChangeSorting()
-    {
-        $this->actionService->moveRecord(self::TABLE_Page, self::VALUE_PageIdTarget, self::VALUE_PageIdWebsite);
-        $this->actionService->moveRecord(self::TABLE_Page, self::VALUE_PageId, -self::VALUE_PageIdTarget);
-    }
-
-    /**
      * @see DataSet/movePageRecordToDifferentPageAndCreatePageRecordAfterMovedPageRecord.csv
      * @see http://forge.typo3.org/issues/33104
      * @see http://forge.typo3.org/issues/55573
      * @see DataSet/movePageRecordToDifferentPageAndCreatePageRecordAfterMovedPageRecord.csv
      * @see http://forge.typo3.org/issues/33104
      * @see http://forge.typo3.org/issues/55573