[TASK] Add functional test covering copying a page translated in free mode
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / DataHandling / Regular / Modify / ActionTest.php
index fdd2549..3938ab1 100644 (file)
@@ -252,7 +252,7 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\A
 
     /**
      * @test
-     * @see DataSet/Assertion/copyPageRecord.csv
+     * @see DataSet/copyPage.csv
      */
     public function copyPage()
     {
@@ -266,6 +266,21 @@ class ActionTest extends \TYPO3\CMS\Core\Tests\Functional\DataHandling\Regular\A
 
     /**
      * @test
+     * @see DataSet/copyPageFreeMode.csv
+     */
+    public function copyPageFreeMode()
+    {
+        $this->importScenarioDataSet('LivePageFreeModeElements');
+        parent::copyPageFreeMode();
+        $this->assertAssertionDataSet('copyPageFreeMode');
+
+        $responseSections = $this->getFrontendResponse($this->recordIds['newPageId'])->getResponseSections();
+        $this->assertThat($responseSections, $this->getRequestSectionHasRecordConstraint()
+            ->setTable(self::TABLE_Page)->setField('title')->setValues('Target'));
+    }
+
+    /**
+     * @test
      * @see DataSet/Assertion/localizePageRecord.csv
      */
     public function localizePage()