[FOLLOWUP][BUGFIX] Throw empty table name exception in TCE GroupElement 10/49110/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 19 Jul 2016 17:06:19 +0000 (19:06 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Tue, 19 Jul 2016 17:21:55 +0000 (19:21 +0200)
Fix unit test.

Resolves: #76232
Releases: 7.6
Change-Id: Ic60a3af12ea6144625110033de019c01746b2183
Reviewed-on: https://review.typo3.org/49110
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Tests/Unit/Form/Element/GroupElementTest.php

index b5c37c3..aea2c52 100644 (file)
@@ -55,8 +55,7 @@ class GroupElementTest extends UnitTestCase
         $nodeFactoryProphecy = $this->prophesize(NodeFactory::class);
         $subject = new GroupElement($nodeFactoryProphecy->reveal(), $data);
 
-        $this->expectException(\RuntimeException::class);
-        $this->expectExceptionCode(1468149217);
+        $this->setExpectedException(\RuntimeException::class, 1468149217);
 
         $subject->render();
     }