[!!!][FEATURE] FormEngine element level refactoring
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Tests / Unit / Form / FormDataCompilerTest.php
index c9044ca..f1850b2 100644 (file)
@@ -151,6 +151,19 @@ class FormDataCompilerTest extends \TYPO3\CMS\Components\TestingFramework\Core\U
     /**
      * @test
      */
+    public function compileThrowsExceptionIfRenderDataIsNotEmpty()
+    {
+        $this->formDataGroupProphecy->compile(Argument::cetera())->willReturn([
+            'renderData' => [ 'foo' ],
+        ]);
+        $this->expectException(\RuntimeException::class);
+        $this->expectExceptionCode(1485201279);
+        $this->subject->compile([]);
+    }
+
+    /**
+     * @test
+     */
     public function compileThrowsExceptionIfFormDataGroupRemovedKeysFromResultArray()
     {
         $this->formDataGroupProphecy->compile(Argument::cetera())->will(function ($arguments) {