[TASK] Extend functional test cases for copying data 46/44546/3
authorOliver Hader <oliver@typo3.org>
Sat, 31 Oct 2015 19:46:57 +0000 (20:46 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Thu, 5 Nov 2015 11:37:17 +0000 (12:37 +0100)
The workspaces functional test cases are extended with combined
draft and live actions on copying record data. This task is to
add the tests first. Thus, the assertions contain flaws that
are solved in a separate issue - which can be visualized and
proven then.

Resolves: #71342
Releases: master, 6.2
Change-Id: I85787a410f4e6260528a89491537e243842a405a
Reviewed-on: https://review.typo3.org/44546
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/AbstractActionTestCase.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/ActionTest.php
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentAndCopyDraftPage.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentAndCopyLivePage.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNestedPagesAndCopyDraftParentPage.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNestedPagesAndCopyLiveParentPage.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createPageAndCopyDraftParentPage.csv [new file with mode: 0644]
typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createPageAndCopyLiveParentPage.csv [new file with mode: 0644]

index ce75e54..e9fe030 100644 (file)
@@ -274,4 +274,107 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
         $newTableIds = $this->actionService->createNewRecord(self::TABLE_Page, -self::VALUE_PageIdTarget, array('title' => 'Testing #1', 'hidden' => 0));
         $this->recordIds['newPageId'] = $newTableIds[self::TABLE_Page][0];
     }
+
+    /**
+     * Creates a content element and copies the page in draft workspace.
+     */
+    public function createContentAndCopyDraftPage()
+    {
+        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, array('header' => 'Testing #1'));
+        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
+        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
+        $this->recordIds['copiedPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+    }
+
+    /**
+     * Creates a content element and copies the page in live workspace.
+     */
+    public function createContentAndCopyLivePage()
+    {
+        $newTableIds = $this->actionService->createNewRecord(self::TABLE_Content, self::VALUE_PageId, array('header' => 'Testing #1'));
+        $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][0];
+
+        // Switch to live workspace
+        $this->backendUser->workspace = 0;
+
+        $newTableIds = $this->actionService->copyRecord(self::TABLE_Page, self::VALUE_PageId, self::VALUE_PageIdTarget);
+        $this->recordIds['copiedPageId'] = $newTableIds[self::TABLE_Page][self::VALUE_PageId];
+
+        // Switch back to draft workspace
+        $this->backendUser->workspace = static::VALUE_WorkspaceId;
+    }
+
+    /**
+     * Creates a page in a draft workspace and copies the parent page in draft workspace.
+     */
+    public function createPageAndCopyDraftParentPage()
+    {
+        $this->backendUser->uc['copyLevels'] = 10;
+
+        $newTableIds = $this->actionService->createNewRecord(static::TABLE_Page, static::VALUE_PageId, array('title' => 'Testing #1', 'hidden' => 0));
+        $this->recordIds['newPageId'] = $newTableIds[static::TABLE_Page][0];
+        $newTableIds = $this->actionService->copyRecord(static::TABLE_Page, static::VALUE_PageId, static::VALUE_PageIdTarget);
+        $this->recordIds['copiedPageId'] = $newTableIds[static::TABLE_Page][static::VALUE_PageId];
+    }
+    /**
+     * Creates a page in a draft workspace and copies the parent page in live workspace.
+     */
+    public function createPageAndCopyLiveParentPage()
+    {
+        $this->backendUser->uc['copyLevels'] = 10;
+
+        $newTableIds = $this->actionService->createNewRecord(static::TABLE_Page, static::VALUE_PageId, array('title' => 'Testing #1', 'hidden' => 0));
+        $this->recordIds['newPageId'] = $newTableIds[static::TABLE_Page][0];
+
+        // Switch to live workspace
+        $this->backendUser->workspace = 0;
+
+        $newTableIds = $this->actionService->copyRecord(static::TABLE_Page, static::VALUE_PageId, static::VALUE_PageIdTarget);
+        $this->recordIds['copiedPageId'] = $newTableIds[static::TABLE_Page][static::VALUE_PageId];
+
+        // Switch back to draft workspace
+        $this->backendUser->workspace = static::VALUE_WorkspaceId;
+    }
+
+    /**
+     * Creates nested pages in a draft workspace and copies the parent page in draft workspace.
+     */
+    public function createNestedPagesAndCopyDraftParentPage()
+    {
+        $this->backendUser->uc['copyLevels'] = 10;
+
+        $newTableIds = $this->actionService->createNewRecord(static::TABLE_Page, static::VALUE_PageId, array('title' => 'Testing #1', 'hidden' => 0));
+        $this->recordIds['newPageIdFirst'] = $newTableIds[static::TABLE_Page][0];
+        $newTableIds = $this->actionService->createNewRecord(static::TABLE_Page, $this->recordIds['newPageIdFirst'], array('title' => 'Testing #2', 'hidden' => 0));
+        $this->recordIds['newPageIdSecond'] = $newTableIds[static::TABLE_Page][0];
+        $newTableIds = $this->actionService->copyRecord(static::TABLE_Page, static::VALUE_PageId, static::VALUE_PageIdTarget);
+        $this->recordIds['copiedPageId'] = $newTableIds[static::TABLE_Page][static::VALUE_PageId];
+        $this->recordIds['copiedPageIdFirst'] = $newTableIds[static::TABLE_Page][$this->recordIds['newPageIdFirst']];
+        $this->recordIds['copiedPageIdSecond'] = $newTableIds[static::TABLE_Page][$this->recordIds['newPageIdSecond']];
+    }
+
+    /**
+     * Creates nested pages in a draft workspace and copies the parent page in live workspace.
+     */
+    public function createNestedPagesAndCopyLiveParentPage()
+    {
+        $this->backendUser->uc['copyLevels'] = 10;
+
+        $newTableIds = $this->actionService->createNewRecord(static::TABLE_Page, static::VALUE_PageId, array('title' => 'Testing #1', 'hidden' => 0));
+        $this->recordIds['newPageIdFirst'] = $newTableIds[static::TABLE_Page][0];
+        $newTableIds = $this->actionService->createNewRecord(static::TABLE_Page, $this->recordIds['newPageIdFirst'], array('title' => 'Testing #2', 'hidden' => 0));
+        $this->recordIds['newPageIdSecond'] = $newTableIds[static::TABLE_Page][0];
+
+        // Switch to live workspace
+        $this->backendUser->workspace = 0;
+
+        $newTableIds = $this->actionService->copyRecord(static::TABLE_Page, static::VALUE_PageId, static::VALUE_PageIdTarget);
+        $this->recordIds['copiedPageId'] = $newTableIds[static::TABLE_Page][static::VALUE_PageId];
+        $this->recordIds['copiedPageIdFirst'] = $newTableIds[static::TABLE_Page][$this->recordIds['newPageIdFirst']];
+        $this->recordIds['copiedPageIdSecond'] = $newTableIds[static::TABLE_Page][$this->recordIds['newPageIdSecond']];
+
+        // Switch back to draft workspace
+        $this->backendUser->workspace = static::VALUE_WorkspaceId;
+    }
+
 }
index d1fcffd..d556dd9 100644 (file)
@@ -360,4 +360,107 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\Reg
             ->setRecordIdentifier(self::TABLE_Page . ':' . self::VALUE_PageIdWebsite)->setRecordField('__pages')
             ->setTable(self::TABLE_Page)->setField('title')->setValues('Target', 'Testing #1', 'DataHandlerTest'));
     }
+
+    /**
+     * @test
+     * @see DataSet/createContentAndCopyDraftPage.csv
+     */
+    public function createContentAndCopyDraftPage()
+    {
+        parent::createContentAndCopyDraftPage();
+        $this->assertAssertionDataSet('createContentAndCopyDraftPage');
+
+        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
+        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
+            ->setTable(static::TABLE_Content)->setField('header')->setValues('Testing #1'));
+        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+        $this->assertThat($responseSectionsDraft, $this->getRequestSectionHasRecordConstraint()
+            ->setTable(static::TABLE_Content)->setField('header')->setValues('Testing #1'));
+    }
+
+    /**
+     * @test
+     * @see DataSet/createContentAndCopyLivePage.csv
+     */
+    public function createContentAndCopyLivePage()
+    {
+        parent::createContentAndCopyLivePage();
+        $this->assertAssertionDataSet('createContentAndCopyLivePage');
+
+//        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
+//        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
+//            ->setTable(static::TABLE_Content)->setField('header')->setValues('Testing #1'));
+//        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+//        $this->assertThat($responseSectionsDraft, $this->getRequestSectionDoesNotHaveRecordConstraint()
+//            ->setTable(static::TABLE_Content)->setField('header')->setValues('Testing #1'));
+    }
+
+    /**
+     * @test
+     * @see DataSet/createPageAndCopyDraftParentPage.csv
+     */
+    public function createPageAndCopyDraftParentPage()
+    {
+        parent::createPageAndCopyDraftParentPage();
+        $this->assertAssertionDataSet('createPageAndCopyDraftParentPage');
+
+        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
+        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
+            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+        $this->assertThat($responseSectionsDraft, $this->getRequestSectionHasRecordConstraint()
+            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+    }
+
+    /**
+     * @test
+     * @see DataSet/createPageAndCopyParentPage.csv
+     */
+    public function createPageAndCopyLiveParentPage()
+    {
+        parent::createPageAndCopyLiveParentPage();
+        $this->assertAssertionDataSet('createPageAndCopyLiveParentPage');
+
+//        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
+//        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
+//            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+//        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, self::VALUE_BackendUserId, self::VALUE_WorkspaceId)->getResponseSections();
+//        $this->assertThat($responseSectionsDraft, $this->getRequestSectionDoesNotHaveRecordConstraint()
+//            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+    }
+
+    /**
+     * @test
+     * @see DataSet/createNestedPagesAndCopyDraftParentPage.csv
+     */
+    public function createNestedPagesAndCopyDraftParentPage()
+    {
+        parent::createNestedPagesAndCopyDraftParentPage();
+        $this->assertAssertionDataSet('createNestedPagesAndCopyDraftParentPage');
+
+        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
+        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
+            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, static::VALUE_BackendUserId, static::VALUE_WorkspaceId)->getResponseSections();
+        $this->assertThat($responseSectionsDraft, $this->getRequestSectionHasRecordConstraint()
+            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+    }
+
+    /**
+     * @test
+     * @see DataSet/createNestedPagesAndCopyParentPage.csv
+     */
+    public function createNestedPagesAndCopyLiveParentPage()
+    {
+        parent::createNestedPagesAndCopyLiveParentPage();
+        $this->assertAssertionDataSet('createNestedPagesAndCopyLiveParentPage');
+
+//        $responseSectionsLive = $this->getFrontendResponse($this->recordIds['copiedPageId'])->getResponseSections();
+//        $this->assertThat($responseSectionsLive, $this->getRequestSectionDoesNotHaveRecordConstraint()
+//            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+//        $responseSectionsDraft = $this->getFrontendResponse($this->recordIds['copiedPageId'], 0, static::VALUE_BackendUserId, static::VALUE_WorkspaceId)->getResponseSections();
+//        $this->assertThat($responseSectionsDraft, $this->getRequestSectionDoesNotHaveRecordConstraint()
+//            ->setTable(static::TABLE_Page)->setField('title')->setValues('Testing #1'));
+    }
+
 }
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentAndCopyDraftPage.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentAndCopyDraftPage.csv
new file mode 100644 (file)
index 0000000..0c6340a
--- /dev/null
@@ -0,0 +1,27 @@
+pages
+,uid,pid,sorting,deleted,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,title
+,1,0,256,0,0,0,0,0,0,FunctionalTest
+,88,1,256,0,0,0,0,0,0,DataHandlerTest
+,89,88,256,0,0,0,0,0,0,Relations
+,90,88,512,0,0,0,0,0,0,Target
+,91,90,256,0,1,1,0,0,0,Relations
+,92,-1,256,0,1,-1,0,91,0,Relations
+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,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,91,256,0,0,0,1,1,0,0,0,"Regular Element #3"
+,305,-1,256,0,0,0,1,-1,0,304,0,"Regular Element #3"
+,306,91,128,0,1,304,1,1,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,307,-1,128,0,1,304,1,-1,0,306,0,"[Translate to Dansk:] Regular Element #3"
+,308,91,64,0,0,0,1,1,0,0,0,"Regular Element #2"
+,309,-1,64,0,0,0,1,-1,0,308,0,"Regular Element #2"
+,310,91,32,0,0,0,1,1,0,0,0,"Regular Element #1"
+,311,-1,32,0,0,0,1,-1,0,310,0,"Regular Element #1"
+,312,91,16,0,0,0,1,1,0,0,0,"Testing #1"
+,313,-1,16,0,0,0,1,-1,0,312,0,"Testing #1"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentAndCopyLivePage.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createContentAndCopyLivePage.csv
new file mode 100644 (file)
index 0000000..2fa96b1
--- /dev/null
@@ -0,0 +1,21 @@
+pages
+,uid,pid,sorting,deleted,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,title
+,1,0,256,0,0,0,0,0,0,FunctionalTest
+,88,1,256,0,0,0,0,0,0,DataHandlerTest
+,89,88,256,0,0,0,0,0,0,Relations
+,90,88,512,0,0,0,0,0,0,Target
+,91,90,256,0,0,0,0,0,0,Relations
+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,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,91,256,0,0,0,0,0,0,0,0,"Regular Element #3"
+,305,91,128,0,1,304,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,306,91,64,0,0,0,0,0,0,0,0,"Regular Element #2"
+,307,91,32,0,0,0,0,0,0,0,0,"Regular Element #1"
+,308,91,16,0,0,0,0,0,0,0,0,"Testing #1"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNestedPagesAndCopyDraftParentPage.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNestedPagesAndCopyDraftParentPage.csv
new file mode 100644 (file)
index 0000000..9951f07
--- /dev/null
@@ -0,0 +1,31 @@
+pages
+,uid,pid,sorting,deleted,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,title
+,1,0,256,0,0,0,0,0,0,FunctionalTest
+,88,1,256,0,0,0,0,0,0,DataHandlerTest
+,89,88,256,0,0,0,0,0,0,Relations
+,90,88,512,0,0,0,0,0,0,Target
+,91,89,256,0,1,1,0,0,0,"Testing #1"
+,92,-1,256,0,1,-1,0,91,0,"Testing #1"
+,93,91,256,0,1,1,0,0,0,"Testing #2"
+,94,-1,256,0,1,-1,0,93,0,"Testing #2"
+,95,90,256,0,1,1,0,0,0,Relations
+,96,-1,256,0,1,-1,0,95,0,Relations
+,97,95,256,0,1,1,0,0,0,"Testing #1"
+,98,-1,256,0,1,-1,0,97,0,"Testing #1"
+,99,97,256,0,1,1,0,0,0,"Testing #2"
+,100,-1,256,0,1,-1,0,99,0,"Testing #2"
+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,95,256,0,0,0,1,1,0,0,0,"Regular Element #3"
+,303,-1,256,0,0,0,1,-1,0,302,0,"Regular Element #3"
+,304,95,128,0,1,302,1,1,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,305,-1,128,0,1,302,1,-1,0,304,0,"[Translate to Dansk:] Regular Element #3"
+,306,95,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,95,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"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNestedPagesAndCopyLiveParentPage.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createNestedPagesAndCopyLiveParentPage.csv
new file mode 100644 (file)
index 0000000..0359358
--- /dev/null
@@ -0,0 +1,24 @@
+pages
+,uid,pid,sorting,deleted,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,title
+,1,0,256,0,0,0,0,0,0,FunctionalTest
+,88,1,256,0,0,0,0,0,0,DataHandlerTest
+,89,88,256,0,0,0,0,0,0,Relations
+,90,88,512,0,0,0,0,0,0,Target
+,91,89,256,0,1,1,0,0,0,"Testing #1"
+,92,-1,256,0,1,-1,0,91,0,"Testing #1"
+,93,91,256,0,1,1,0,0,0,"Testing #2"
+,94,-1,256,0,1,-1,0,93,0,"Testing #2"
+,95,90,256,0,0,0,0,0,0,Relations
+,96,95,256,0,0,0,0,0,0,"Testing #1"
+,97,96,256,0,0,0,0,0,0,"Testing #2"
+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,95,256,0,0,0,0,0,0,0,0,"Regular Element #3"
+,303,95,128,0,1,302,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,304,95,64,0,0,0,0,0,0,0,0,"Regular Element #2"
+,305,95,32,0,0,0,0,0,0,0,0,"Regular Element #1"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createPageAndCopyDraftParentPage.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createPageAndCopyDraftParentPage.csv
new file mode 100644 (file)
index 0000000..52a1377
--- /dev/null
@@ -0,0 +1,27 @@
+pages
+,uid,pid,sorting,deleted,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,title
+,1,0,256,0,0,0,0,0,0,FunctionalTest
+,88,1,256,0,0,0,0,0,0,DataHandlerTest
+,89,88,256,0,0,0,0,0,0,Relations
+,90,88,512,0,0,0,0,0,0,Target
+,91,89,256,0,1,1,0,0,0,"Testing #1"
+,92,-1,256,0,1,-1,0,91,0,"Testing #1"
+,93,90,256,0,1,1,0,0,0,Relations
+,94,-1,256,0,1,-1,0,93,0,Relations
+,95,93,256,0,1,1,0,0,0,"Testing #1"
+,96,-1,256,0,1,-1,0,95,0,"Testing #1"
+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,93,256,0,0,0,1,1,0,0,0,"Regular Element #3"
+,303,-1,256,0,0,0,1,-1,0,302,0,"Regular Element #3"
+,304,93,128,0,1,302,1,1,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,305,-1,128,0,1,302,1,-1,0,304,0,"[Translate to Dansk:] Regular Element #3"
+,306,93,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,93,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"
diff --git a/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createPageAndCopyLiveParentPage.csv b/typo3/sysext/workspaces/Tests/Functional/DataHandling/Regular/Modify/DataSet/createPageAndCopyLiveParentPage.csv
new file mode 100644 (file)
index 0000000..689e089
--- /dev/null
@@ -0,0 +1,21 @@
+pages
+,uid,pid,sorting,deleted,t3ver_wsid,t3ver_state,t3ver_stage,t3ver_oid,t3ver_move_id,title
+,1,0,256,0,0,0,0,0,0,FunctionalTest
+,88,1,256,0,0,0,0,0,0,DataHandlerTest
+,89,88,256,0,0,0,0,0,0,Relations
+,90,88,512,0,0,0,0,0,0,Target
+,91,89,256,0,1,1,0,0,0,"Testing #1"
+,92,-1,256,0,1,-1,0,91,0,"Testing #1"
+,93,90,256,0,0,0,0,0,0,Relations
+,94,93,256,0,0,0,0,0,0,"Testing #1"
+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,93,256,0,0,0,0,0,0,0,0,"Regular Element #3"
+,303,93,128,0,1,302,0,0,0,0,0,"[Translate to Dansk:] Regular Element #3"
+,304,93,64,0,0,0,0,0,0,0,0,"Regular Element #2"
+,305,93,32,0,0,0,0,0,0,0,0,"Regular Element #1"