[TASK] Extend DataHandler IRRE functional tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / Tests / Functional / DataHandling / IRRE / CSV / PublishAll / ActionTest.php
index 8fe3a42..38119c4 100644 (file)
@@ -118,6 +118,22 @@ class ActionTest extends \TYPO3\CMS\Workspaces\Tests\Functional\DataHandling\IRR
 
        /**
         * @test
+        * @see DataSet/copyParentContentToDifferentPage.csv
+        */
+       public function copyParentContentToDifferentPage() {
+               parent::copyParentContentToDifferentPage();
+               $this->actionService->publishWorkspace(self::VALUE_WorkspaceId);
+               $this->assertAssertionDataSet('copyParentContentToDifferentPage');
+
+               $responseContent = $this->getFrontendResponse(self::VALUE_PageIdTarget, 0)->getResponseContent();
+               $this->assertResponseContentStructureHasRecords(
+                       $responseContent, self::TABLE_Content . ':' . $this->recordIds['newContentId'], self::FIELD_ContentHotel,
+                       self::TABLE_Hotel, 'title', array('Hotel #1')
+               );
+       }
+
+       /**
+        * @test
         * @see DataSet/Assertion/localizeParentContentRecord.csv
         */
        public function localizeParentContent() {