[TASK] Extend DataHandler IRRE functional tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Functional / DataHandling / IRRE / ForeignField / AbstractActionTestCase.php
index dd61b64..04862da 100644 (file)
@@ -36,6 +36,9 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
        const VALUE_PageIdWebsite = 1;
        const VALUE_ContentIdFirst = 297;
        const VALUE_ContentIdLast = 298;
+       const VALUE_HotelIdFirst = 3;
+       const VALUE_HotelIdSecond = 4;
+       const VALUE_HotelIdThird = 5;
        const VALUE_LanguageId = 1;
 
        const TABLE_Page = 'pages';
@@ -98,6 +101,14 @@ abstract class AbstractActionTestCase extends \TYPO3\CMS\Core\Tests\Functional\D
        }
 
        /**
+        * @see DataSet/copyParentContentToDifferentPage.csv
+        */
+       public function copyParentContentToDifferentPage() {
+               $newTableIds = $this->actionService->copyRecord(self::TABLE_Content, self::VALUE_ContentIdLast, self::VALUE_PageIdTarget);
+               $this->recordIds['newContentId'] = $newTableIds[self::TABLE_Content][self::VALUE_ContentIdLast];
+       }
+
+       /**
         * @test
         * @see DataSet/Assertion/localizeParentContentRecord.csv
         */