[TASK] Add functional tests for rendering translated tt_content with FAL
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Functional / Fixtures / Extensions / blog_example / Classes / Controller / ContentController.php
index ca979df..c4543d1 100644 (file)
@@ -45,7 +45,20 @@ class ContentController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControll
     {
         $content = $this->contentRepository->findAll();
         $value[$this->getRuntimeIdentifier()] = $this->getStructure($content);
-
+        // this is required so we don't try to json_encode content of the image
+        $this->view->setConfiguration(['value' => [
+            '_descendAll' => [
+                '_descendAll' => [
+                    '_descendAll' => [
+                        '_descendAll' => [
+                            '_descendAll' => [
+                                '_exclude' => ['contents']
+                            ]
+                        ]
+                    ]
+                ]
+            ]
+        ]]);
         $this->view->assign('value', $value);
     }