[TASK] Add possibility to copy pages recursively in functional tests 62/44462/2
authorOliver Hader <oliver@typo3.org>
Sat, 31 Oct 2015 19:09:44 +0000 (20:09 +0100)
committerOliver Hader <oliver.hader@typo3.org>
Sat, 31 Oct 2015 19:42:36 +0000 (20:42 +0100)
Resolves: #71222
Releases: master, 6.2
Change-Id: I6d73c5556ba48e936d28c0532a57f8bf9d3b6175
Reviewed-on: https://review.typo3.org/44462
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
typo3/sysext/core/Tests/Functional/DataHandling/Framework/ActionService.php

index 949becf..0834528 100644 (file)
@@ -453,7 +453,12 @@ class ActionService
      */
     protected function createDataHandler()
     {
-        return $this->dataHandler = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(DataHandler::class);
+        $this->dataHandler = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(DataHandler::class);
+        $backendUser = $this->getBackendUser();
+        if (isset($backendUser->uc['copyLevels'])) {
+            $this->dataHandler->copyTree = $backendUser->uc['copyLevels'];
+        }
+        return $this->dataHandler;
     }
 
     /**