[TASK] Extend Regular DataHandler functional tests 41/31141/4
authorOliver Hader <oliver@typo3.org>
Wed, 25 Jun 2014 13:02:24 +0000 (15:02 +0200)
committerOliver Hader <oliver.hader@typo3.org>
Fri, 11 Jul 2014 09:13:35 +0000 (11:13 +0200)
* add third tt_content element with localization in live context
* add new tt_content delete placeholder in different workspace
* populate changes to all scenarios in live and workspace context

Releases: 6.2, 6.3
Resolves: #59881
Change-Id: I644e264048a5c33c0a613d5f8440975cabd40721
Reviewed-on: https://review.typo3.org/31141
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
75 files changed:
typo3/sysext/core/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/DataSet/LiveDefaultElements.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/changeContentSorting.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/copyContent.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/copyPage.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/copyPasteContent.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContents.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteContent.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv [new file with mode: 0644]
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/deletePage.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizeContent.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePage.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/modifyContent.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/moveContentToDifferentPage.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/moveContentToDifferentPageNChangeSorting.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/movePageToDifferentPage.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/movePageToDifferentPageNChangeSorting.csv
typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/movePasteContentToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/DataSet/LiveDefaultElements.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/changeContentSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/changePageSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/copyContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/copyPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentNDiscardCreatedContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContents.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNCopyContentNDiscardCopiedContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/deletePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizeContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/localizePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/modifyContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/moveContentToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/moveContentToDifferentPageNChangeSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/movePageToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/movePageToDifferentPageNChangeSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/changeContentSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/changePageSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/copyContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/copyPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/createContentNDiscardCreatedContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/createContents.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/createNCopyContentNDiscardCopiedContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deleteContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deleteLocalizedContentNDeleteContent.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deletePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizeContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/localizePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/modifyContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/moveContentToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/moveContentToDifferentPageNChangeSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/movePageToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/movePageToDifferentPageNChangeSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/changeContentSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/changePageSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/copyContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/copyPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/createContentNDiscardCreatedContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/createContents.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/createNCopyContentNDiscardCopiedContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deleteContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deleteLocalizedContentNDeleteContent.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deletePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizeContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/localizePage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/modifyContent.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/moveContentToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/moveContentToDifferentPageNChangeSorting.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/movePageToDifferentPage.csv
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/movePageToDifferentPageNChangeSorting.csv

index ab1dc7e..68b7b42 100644 (file)
@@ -25,7 +25,9 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
        const VALUE_PageIdTarget = 90;
        const VALUE_PageIdWebsite = 1;
        const VALUE_ContentIdFirst = 297;
-       const VALUE_ContentIdLast = 298;
+       const VALUE_ContentIdSecond = 298;
+       const VALUE_ContentIdThird = 299;
+       const VALUE_ContentIdThirdLocalized = 300;
        const VALUE_LanguageId = 1;
 
        const TABLE_Page = 'pages';
@@ -57,7 +59,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
                // Creating record at the beginning of the page
                $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, array('header' => 'Testing #1'));
                // Creating record at the end of the page (after last one)
-               $this->actionService->createNewRecord(self::TABLE_Content, -self::VALUE_ContentIdLast, array('header' => 'Testing #2'));
+               $this->actionService->createNewRecord(self::TABLE_Content, -self::VALUE_ContentIdSecond, array('header' => 'Testing #2'));
        }
 
        /**
@@ -65,7 +67,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/modifyContentRecord.csv
         */
        public function modifyContent() {
-               $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, array('header' => 'Testing #1'));
+               $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, array('header' => 'Testing #1'));
        }
 
        /**
@@ -73,7 +75,15 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/deleteContentRecord.csv
         */
        public function deleteContent() {
-               $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
+               $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);
        }
 
        /**
@@ -81,7 +91,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/copyContentRecord.csv
         */
        public function copyContent() {
-               $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageId);
+               $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageId);
        }
 
        /**
@@ -89,7 +99,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/copyPasteContent.csv
         */
        public function copyPasteContent() {
-               $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageId, array('header' => 'Testing #1'));
+               $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageId, array('header' => 'Testing #1'));
        }
 
        /**
@@ -97,7 +107,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/localizeContentRecord.csv
         */
        public function localizeContent() {
-               $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
+               $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_LanguageId);
        }
 
        /**
@@ -105,7 +115,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/changeContentRecordSorting.csv
         */
        public function changeContentSorting() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdSecond);
        }
 
        /**
@@ -113,7 +123,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/moveContentRecordToDifferentPage.csv
         */
        public function moveContentToDifferentPage() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget);
        }
 
        /**
@@ -121,7 +131,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/movePasteContentToDifferentPage.csv
         */
        public function movePasteContentToDifferentPage() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget, array('header' => 'Testing #1'));
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget, array('header' => 'Testing #1'));
        }
 
        /**
@@ -129,8 +139,8 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/moveContentRecordToDifferentPageAndChangeSorting.csv
         */
        public function moveContentToDifferentPageAndChangeSorting() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdSecond);
        }
 
        /**
index ab3220d..6ca8584 100644 (file)
@@ -9,6 +9,8 @@
 ,30,0,768,0,0,0,0,0,0,0,0,"Category C",0,0,
 ,31,0,1024,0,0,0,0,0,0,0,0,"Category A.A",28,0,
 "tt_content",,,,,,,,,,,,,,,
-,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","header","image","categories","tx_irretutorial_1nff_hotels"
-,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1","\NULL",0,0
-,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2","\NULL",0,0
+,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","header"
+,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
+,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
\ No newline at end of file
index 4d4f74c..c2f142d 100644 (file)
@@ -73,6 +73,19 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\A
 
        /**
         * @test
+        * @see DataSet/deleteLocalizedContentNDeleteContent.csv
+        */
+       public function deleteLocalizedContentAndDeleteContent() {
+               parent::deleteLocalizedContentAndDeleteContent();
+               $this->assertAssertionDataSet('deleteLocalizedContentNDeleteContent');
+
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
+                       ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3', '[Translate to Dansk:] Regular Element #3'));
+       }
+
+       /**
+        * @test
         * @see DataSet/Assertion/copyContentRecord.csv
         */
        public function copyContent() {
index da90cb3..a736195 100644 (file)
@@ -1,4 +1,6 @@
 tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
-,297,89,768,0,0,0,0,0,0,0,0,"Regular Element #1"
+,297,89,640,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 0fa35ef..0eb8afd 100644 (file)
@@ -2,4 +2,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Regular Element #2 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,89,128,0,0,0,0,0,0,0,0,"Regular Element #2 (copy 1)"
index 17a93ce..b934106 100644 (file)
@@ -9,5 +9,9 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,91,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,300,91,128,0,0,0,0,0,0,0,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,91,256,0,1,302,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,302,91,128,0,0,0,0,0,0,0,0,"Regular Element #3"
+,303,91,64,0,0,0,0,0,0,0,0,"Regular Element #2"
+,304,91,32,0,0,0,0,0,0,0,0,"Regular Element #1"
index b4fb6b3..bd8e777 100644 (file)
@@ -2,4 +2,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,89,128,0,0,0,0,0,0,0,0,"Testing #1"
index 3578c51..b71c5c7 100644 (file)
@@ -2,5 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Testing #1"
-,300,89,768,0,0,0,0,0,0,0,0,"Testing #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,89,128,0,0,0,0,0,0,0,0,"Testing #1"
+,302,89,640,0,0,0,0,0,0,0,0,"Testing #2"
index cdb8cf6..541ff1f 100644 (file)
@@ -2,3 +2,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv b/typo3/sysext/core/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv
new file mode 100644 (file)
index 0000000..8d227df
--- /dev/null
@@ -0,0 +1,6 @@
+tt_content
+,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
+,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
+,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1000000000,1,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 1d09fe6..86c16dd 100644 (file)
@@ -8,3 +8,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1000000000,1,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 423e332..78a4dc3 100644 (file)
@@ -2,4 +2,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,768,0,1,298,0,0,0,0,0,"[Translate to Dansk:] Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,89,640,0,1,298,0,0,0,0,0,"[Translate to Dansk:] Regular Element #2"
index 1b7a415..81a8bc2 100644 (file)
@@ -11,3 +11,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 619fc54..fa8d2b2 100644 (file)
@@ -2,3 +2,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 185e1f1..b4cad23 100644 (file)
@@ -2,3 +2,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index ce70447..11f0585 100644 (file)
@@ -2,3 +2,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,90,512,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 836ea5e..47763a3 100644 (file)
@@ -8,3 +8,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 7786fb4..6207a0c 100644 (file)
@@ -8,3 +8,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 07d1580..a0af05f 100644 (file)
@@ -2,3 +2,5 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
index 9db9f22..9a746ff 100644 (file)
@@ -25,7 +25,9 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
        const VALUE_PageIdTarget = 90;
        const VALUE_PageIdWebsite = 1;
        const VALUE_ContentIdFirst = 297;
-       const VALUE_ContentIdLast = 298;
+       const VALUE_ContentIdSecond = 298;
+       const VALUE_ContentIdThird = 299;
+       const VALUE_ContentIdThirdLocalized = 300;
        const VALUE_LanguageId = 1;
        const VALUE_WorkspaceId = 1;
 
@@ -69,7 +71,7 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
                $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, array('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_ContentIdLast, array('header' => 'Testing #2'));
+               $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, -self::VALUE_ContentIdSecond, array('header' => 'Testing #2'));
                $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][0];
        }
 
@@ -99,52 +101,60 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         * @see DataSet/Assertion/modifyContentRecord.csv
         */
        public function modifyContent() {
-               $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, array('header' => 'Testing #1'));
+               $this->actionService->modifyRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, array('header' => 'Testing #1'));
        }
 
        /**
         * @see DataSet/Assertion/deleteContentRecord.csv
         */
        public function deleteContent() {
-               $this->actionService->deleteRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
+               $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/Assertion/copyContentRecord.csv
         */
        public function copyContent() {
-               $copiedTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageId);
-               $this->recordIds['copiedContentId'] = $copiedTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
+               $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/Assertion/localizeContentRecord.csv
         */
        public function localizeContent() {
-               $localizedTableIds = $this->actionService->localizeRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_LanguageId);
-               $this->recordIds['localizedContentId'] = $localizedTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
+               $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/Assertion/changeContentRecordSorting.csv
         */
        public function changeContentSorting() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdSecond);
        }
 
        /**
         * @see DataSet/Assertion/moveContentRecordToDifferentPage.csv
         */
        public function moveContentToDifferentPage() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget);
        }
 
        /**
         * @see DataSet/Assertion/moveContentRecordToDifferentPageAndChangeSorting.csv
         */
        public function moveContentToDifferentPageAndChangeSorting() {
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
-               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdLast);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdSecond, self::VALUE_PageIdTarget);
+               $this->actionService->moveRecord(self::TABLE_Content, self::VALUE_ContentIdFirst, -self::VALUE_ContentIdSecond);
        }
 
        /**
@@ -180,7 +190,7 @@ 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];
                $this->recordIds['newContentIdFirst'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdFirst];
-               $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
+               $this->recordIds['newContentIdLast'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdSecond];
        }
 
        /**
index 6e41cfb..8a153dc 100644 (file)
@@ -16,6 +16,9 @@ sys_workspace_stage
 ,30,0,768,0,0,0,0,0,0,0,0,"Category C",0,0,
 ,31,0,1024,0,0,0,0,0,0,0,0,"Category A.A",28,0,
 "tt_content",,,,,,,,,,,,,,,
-,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","header","image","categories","tx_irretutorial_1nff_hotels"
-,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1","\NULL",0,0
-,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2","\NULL",0,0
+,"uid","pid","sorting","deleted","sys_language_uid","l18n_parent","t3ver_wsid","t3ver_state","t3ver_stage","t3ver_oid","t3ver_move_id","header"
+,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
+,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index c16c081..79ff3d5 100644 (file)
@@ -101,6 +101,19 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
 
        /**
         * @test
+        * @see DataSet/deleteLocalizedContentNDeleteContent.csv
+        */
+       public function deleteLocalizedContentAndDeleteContent() {
+               parent::deleteLocalizedContentAndDeleteContent();
+               $this->assertAssertionDataSet('deleteLocalizedContentNDeleteContent');
+
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+               $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
+                       ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3', '[Translate to Dansk:] Regular Element #3'));
+       }
+
+       /**
+        * @test
         * @see DataSet/Assertion/copyContentRecord.csv
         */
        public function copyContent() {
index ef461bb..8a5c1a8 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,256,0,0,0,1,4,0,297,0,"Regular Element #1"
-,300,89,768,0,0,0,1,3,0,0,297,"[MOVE-TO PLACEHOLDER for #297, WS#1]"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,256,0,0,0,1,4,0,297,0,"Regular Element #1"
+,303,89,640,0,0,0,1,3,0,0,297,"[MOVE-TO PLACEHOLDER for #297, WS#1]"
index 96c24f1..ddb3ed5 100644 (file)
@@ -10,3 +10,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 80cddaa..dd0c5f0 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,1,1,0,0,0,"Regular Element #2 (copy 1)"
-,300,-1,128,0,0,0,1,-1,0,299,0,"Regular Element #2 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,1,1,0,0,0,"Regular Element #2 (copy 1)"
+,303,-1,128,0,0,0,1,-1,0,302,0,"Regular Element #2 (copy 1)"
index 9230dbb..7ceb653 100644 (file)
@@ -10,7 +10,14 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,91,256,0,0,0,1,1,0,0,0,"Regular Element #2"
-,300,-1,256,0,0,0,1,-1,0,299,0,"Regular Element #2"
-,301,91,128,0,0,0,1,1,0,0,0,"Regular Element #1"
-,302,-1,128,0,0,0,1,-1,0,301,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,91,256,0,1,299,1,1,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,303,-1,256,0,1,304,1,-1,0,302,0,"[Translate to Dansk:] Regular Element #3"
+,304,91,128,0,0,0,1,1,0,0,0,"Regular Element #3"
+,305,-1,128,0,0,0,1,-1,0,304,0,"Regular Element #3"
+,306,91,64,0,0,0,1,1,0,0,0,"Regular Element #2"
+,307,-1,64,0,0,0,1,-1,0,306,0,"Regular Element #2"
+,308,91,32,0,0,0,1,1,0,0,0,"Regular Element #1"
+,309,-1,32,0,0,0,1,-1,0,308,0,"Regular Element #1"
index bdbda49..0c4a67c 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1"
-,300,-1,1000000000,1,0,0,0,-1,0,299,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1"
+,303,-1,1000000000,1,0,0,0,-1,0,302,0,"Testing #1"
index 0a48f5d..def29b9 100644 (file)
@@ -2,7 +2,10 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,1,1,0,0,0,"Testing #1"
-,300,-1,128,0,0,0,1,-1,0,299,0,"Testing #1"
-,301,89,768,0,0,0,1,1,0,0,0,"Testing #2"
-,302,-1,768,0,0,0,1,-1,0,301,0,"Testing #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,1,1,0,0,0,"Testing #1"
+,303,-1,128,0,0,0,1,-1,0,302,0,"Testing #1"
+,304,89,640,0,0,0,1,1,0,0,0,"Testing #2"
+,305,-1,640,0,0,0,1,-1,0,304,0,"Testing #2"
index b3519e7..40498b8 100644 (file)
@@ -2,7 +2,10 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,1,1,0,0,0,"Testing #1"
-,300,-1,128,0,0,0,1,-1,0,299,0,"Testing #1"
-,301,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1 (copy 1)"
-,302,-1,1000000000,1,0,0,0,-1,0,301,0,"Testing #1 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,1,1,0,0,0,"Testing #1"
+,303,-1,128,0,0,0,1,-1,0,302,0,"Testing #1"
+,304,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1 (copy 1)"
+,305,-1,1000000000,1,0,0,0,-1,0,304,0,"Testing #1 (copy 1)"
index 6572073..f09710b 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,1,2,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,1,2,0,298,0,"Regular Element #2"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/deleteLocalizedContentNDeleteContent.csv
new file mode 100644 (file)
index 0000000..58d9e0a
--- /dev/null
@@ -0,0 +1,9 @@
+tt_content
+,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
+,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
+,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
+,303,-1,768,0,0,0,1,2,0,299,0,"Regular Element #3"
index 721eefe..57e2cc1 100644 (file)
@@ -9,3 +9,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 16e40a5..4f11c8b 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,768,0,1,298,1,1,0,0,0,"[Translate to Dansk:] Regular Element #2"
-,300,-1,768,0,1,298,1,-1,0,299,0,"[Translate to Dansk:] Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,640,0,1,298,1,1,0,0,0,"[Translate to Dansk:] Regular Element #2"
+,303,-1,640,0,1,298,1,-1,0,302,0,"[Translate to Dansk:] Regular Element #2"
index 7d8f453..b888a73 100644 (file)
@@ -12,3 +12,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 6fbaa09..7abf201 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,1,0,0,298,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,1,0,0,298,0,"Testing #1"
index 80bfbc4..0255e64 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,1,4,0,298,0,"Regular Element #2"
-,300,90,256,0,0,0,1,3,0,0,298,"[MOVE-TO PLACEHOLDER for #298, WS#1]"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,1,4,0,298,0,"Regular Element #2"
+,303,90,256,0,0,0,1,3,0,0,298,"[MOVE-TO PLACEHOLDER for #298, WS#1]"
index 651eda7..7ae78aa 100644 (file)
@@ -2,7 +2,10 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,1,4,0,298,0,"Regular Element #2"
-,300,90,256,0,0,0,1,3,0,0,298,"[MOVE-TO PLACEHOLDER for #298, WS#1]"
-,301,-1,256,0,0,0,1,4,0,297,0,"Regular Element #1"
-,302,90,512,0,0,0,1,3,0,0,297,"[MOVE-TO PLACEHOLDER for #297, WS#1]"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,1,4,0,298,0,"Regular Element #2"
+,303,90,256,0,0,0,1,3,0,0,298,"[MOVE-TO PLACEHOLDER for #298, WS#1]"
+,304,-1,256,0,0,0,1,4,0,297,0,"Regular Element #1"
+,305,90,512,0,0,0,1,3,0,0,297,"[MOVE-TO PLACEHOLDER for #297, WS#1]"
index 1a72c54..c80aaa5 100644 (file)
@@ -10,3 +10,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 9c2caf7..b36400c 100644 (file)
@@ -12,3 +12,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 450604b..3935127 100644 (file)
@@ -87,7 +87,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
         */
        public function modifyContent() {
                parent::modifyContent();
-               $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
+               $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
                $this->assertAssertionDataSet('modifyContent');
 
                $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
@@ -101,7 +101,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
         */
        public function deleteContent() {
                parent::deleteContent();
-               $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
+               $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
                $this->assertAssertionDataSet('deleteContent');
 
                $responseSections = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
@@ -113,6 +113,25 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
 
        /**
         * @test
+        * @see DataSet/deleteLocalizedContentNDeleteContent.csv
+        */
+       public function deleteLocalizedContentAndDeleteContent() {
+               $this->markTestSkipped('see http://forge.typo3.org/issues/59113');
+               parent::deleteLocalizedContentAndDeleteContent();
+               $this->actionService->publishRecords(
+                       array(
+                               self::TABLE_Content => array(self::VALUE_ContentIdThird, self::VALUE_ContentIdThirdLocalized),
+                       )
+               );
+               $this->assertAssertionDataSet('deleteLocalizedContentNDeleteContent');
+
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
+                       ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3', '[Translate to Dansk:] Regular Element #3'));
+       }
+
+       /**
+        * @test
         * @see DataSet/Assertion/copyContentRecord.csv
         */
        public function copyContent() {
@@ -159,7 +178,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
         */
        public function moveContentToDifferentPage() {
                parent::moveContentToDifferentPage();
-               $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdLast);
+               $this->actionService->publishRecord(self::TABLE_Content, self::VALUE_ContentIdSecond);
                $this->assertAssertionDataSet('moveContentToDifferentPage');
 
                $responseSectionsSource = $this->getFrontendResponse(self::VALUE_PageId, 0)->getResponseSections();
@@ -178,7 +197,7 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
                parent::moveContentToDifferentPageAndChangeSorting();
                $this->actionService->publishRecords(
                        array(
-                               self::TABLE_Content => array(self::VALUE_ContentIdFirst, self::VALUE_ContentIdLast),
+                               self::TABLE_Content => array(self::VALUE_ContentIdFirst, self::VALUE_ContentIdSecond),
                        )
                );
                $this->assertAssertionDataSet('moveContentToDifferentPageNChangeSorting');
index 0d74f08..4c3cfc8 100644 (file)
@@ -1,5 +1,8 @@
 tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
-,297,89,768,0,0,0,0,0,0,0,0,"Regular Element #1"
+,297,89,640,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
index 48ded5f..8353a32 100644 (file)
@@ -9,3 +9,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 0fa35ef..ac8ab36 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Regular Element #2 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,0,0,0,0,0,"Regular Element #2 (copy 1)"
index 61c4d69..e2a36e1 100644 (file)
@@ -9,5 +9,12 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,91,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,301,91,128,0,0,0,0,0,0,0,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,91,256,0,1,299,1,1,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,303,-1,256,0,1,304,1,-1,0,302,0,"[Translate to Dansk:] Regular Element #3"
+,304,91,128,0,0,0,1,1,0,0,0,"Regular Element #3"
+,305,-1,128,0,0,0,1,-1,0,304,0,"Regular Element #3"
+,306,91,64,0,0,0,0,0,0,0,0,"Regular Element #2"
+,308,91,32,0,0,0,0,0,0,0,0,"Regular Element #1"
index bdbda49..0c4a67c 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1"
-,300,-1,1000000000,1,0,0,0,-1,0,299,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1"
+,303,-1,1000000000,1,0,0,0,-1,0,302,0,"Testing #1"
index 73aa73d..76765f6 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Testing #1"
-,301,89,768,0,0,0,0,0,0,0,0,"Testing #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,0,0,0,0,0,"Testing #1"
+,304,89,640,0,0,0,0,0,0,0,0,"Testing #2"
index f2040a0..cb773a2 100644 (file)
@@ -2,6 +2,9 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Testing #1"
-,301,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1 (copy 1)"
-,302,-1,1000000000,1,0,0,0,-1,0,301,0,"Testing #1 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,0,0,0,0,0,"Testing #1"
+,304,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1 (copy 1)"
+,305,-1,1000000000,1,0,0,0,-1,0,304,0,"Testing #1 (copy 1)"
index 33d5319..2b5d821 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,1000000000,1,0,0,0,0,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,1000000000,1,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,0,0,0,0,0,298,0,"Regular Element #2"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deleteLocalizedContentNDeleteContent.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Publish/DataSet/deleteLocalizedContentNDeleteContent.csv
new file mode 100644 (file)
index 0000000..350a4b7
--- /dev/null
@@ -0,0 +1,10 @@
+tt_content
+,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
+,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
+,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
+,303,-1,1000000000,1,0,0,0,0,0,299,0,"Regular Element #3"
+,304,-1,1024,0,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
index 8230fe5..0c14229 100644 (file)
@@ -9,3 +9,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1000000000,1,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,1000000000,1,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
index 423e332..9e2509c 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,768,0,1,298,0,0,0,0,0,"[Translate to Dansk:] Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,640,0,1,298,0,0,0,0,0,"[Translate to Dansk:] Regular Element #2"
index 1b7a415..b031ee6 100644 (file)
@@ -11,3 +11,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 832a2aa..63e37cb 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Testing #1"
-,299,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
index 41254f8..ee110c1 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
index 107be2d..2907677 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,90,512,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
-,301,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
+,304,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
index e293152..3dfc54c 100644 (file)
@@ -9,3 +9,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 6340a4b..8256c04 100644 (file)
@@ -10,3 +10,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 5d26dc7..d069ce5 100644 (file)
@@ -106,6 +106,20 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
 
        /**
         * @test
+        * @see DataSet/deleteLocalizedContentNDeleteContent.csv
+        */
+       public function deleteLocalizedContentAndDeleteContent() {
+               parent::deleteLocalizedContentAndDeleteContent();
+               $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
+               $this->assertAssertionDataSet('deleteLocalizedContentNDeleteContent');
+
+               $responseSections = $this->getFrontendResponse(self::VALUE_PageId, self::VALUE_LanguageId)->getResponseSections();
+               $this->assertThat($responseSections, $this->getRequestSectionDoesNotHaveRecordConstraint()
+                       ->setTable(self::TABLE_Content)->setField('header')->setValues('Regular Element #3', '[Translate to Dansk:] Regular Element #3'));
+       }
+
+       /**
+        * @test
         * @see DataSet/Assertion/copyContentRecord.csv
         */
        public function copyContent() {
index 0d74f08..4c3cfc8 100644 (file)
@@ -1,5 +1,8 @@
 tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
-,297,89,768,0,0,0,0,0,0,0,0,"Regular Element #1"
+,297,89,640,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
index 48ded5f..8353a32 100644 (file)
@@ -9,3 +9,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 0fa35ef..ac8ab36 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Regular Element #2 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,0,0,0,0,0,"Regular Element #2 (copy 1)"
index 61c4d69..488d315 100644 (file)
@@ -9,5 +9,10 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,91,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,301,91,128,0,0,0,0,0,0,0,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,91,256,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,304,91,128,0,0,0,0,0,0,0,0,"Regular Element #3"
+,306,91,64,0,0,0,0,0,0,0,0,"Regular Element #2"
+,308,91,32,0,0,0,0,0,0,0,0,"Regular Element #1"
index bdbda49..0c4a67c 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1"
-,300,-1,1000000000,1,0,0,0,-1,0,299,0,"Testing #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1"
+,303,-1,1000000000,1,0,0,0,-1,0,302,0,"Testing #1"
index 73aa73d..76765f6 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Testing #1"
-,301,89,768,0,0,0,0,0,0,0,0,"Testing #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,0,0,0,0,0,"Testing #1"
+,304,89,640,0,0,0,0,0,0,0,0,"Testing #2"
index f2040a0..cb773a2 100644 (file)
@@ -2,6 +2,9 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,128,0,0,0,0,0,0,0,0,"Testing #1"
-,301,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1 (copy 1)"
-,302,-1,1000000000,1,0,0,0,-1,0,301,0,"Testing #1 (copy 1)"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,128,0,0,0,0,0,0,0,0,"Testing #1"
+,304,89,1000000000,1,0,0,0,1,0,0,0,"Testing #1 (copy 1)"
+,305,-1,1000000000,1,0,0,0,-1,0,304,0,"Testing #1 (copy 1)"
index 33d5319..2b5d821 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,1000000000,1,0,0,0,0,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,1000000000,1,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,0,0,0,0,0,298,0,"Regular Element #2"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deleteLocalizedContentNDeleteContent.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/PublishAll/DataSet/deleteLocalizedContentNDeleteContent.csv
new file mode 100644 (file)
index 0000000..350a4b7
--- /dev/null
@@ -0,0 +1,10 @@
+tt_content
+,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
+,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
+,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
+,303,-1,1000000000,1,0,0,0,0,0,299,0,"Regular Element #3"
+,304,-1,1024,0,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
index 8230fe5..0c14229 100644 (file)
@@ -9,3 +9,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,1000000000,1,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1000000000,1,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,1000000000,1,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,1000000000,1,1,299,1,2,0,300,0,"[Translate to Dansk:] Regular Element #3"
index 423e332..9e2509c 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,89,768,0,1,298,0,0,0,0,0,"[Translate to Dansk:] Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,89,640,0,1,298,0,0,0,0,0,"[Translate to Dansk:] Regular Element #2"
index 1b7a415..b031ee6 100644 (file)
@@ -11,3 +11,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 832a2aa..63e37cb 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Testing #1"
-,299,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
index 41254f8..ee110c1 100644 (file)
@@ -2,4 +2,7 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
index 107be2d..2907677 100644 (file)
@@ -2,5 +2,8 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,90,512,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,90,256,0,0,0,0,0,0,0,0,"Regular Element #2"
-,299,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
-,301,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
+,302,-1,512,0,0,0,0,0,0,298,0,"Regular Element #2"
+,304,-1,256,0,0,0,0,0,0,297,0,"Regular Element #1"
index e293152..3dfc54c 100644 (file)
@@ -9,3 +9,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"
index 6340a4b..8256c04 100644 (file)
@@ -10,3 +10,6 @@ tt_content
 ,uid,pid,sorting,deleted,sys_language_uid,l18n_parent,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,header
 ,297,89,256,0,0,0,0,0,0,0,0,"Regular Element #1"
 ,298,89,512,0,0,0,0,0,0,0,0,"Regular Element #2"
+,299,89,768,0,0,0,0,0,0,0,0,"Regular Element #3"
+,300,89,1024,0,1,299,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,301,-1,512,0,0,0,2,2,0,298,0,"Regular Element #2"