From c301bae8ba91b1a6f1045919b16f9cb9b62c7e7b Mon Sep 17 00:00:00 2001 From: Florian Eckerstorfer Date: Fri, 6 Mar 2015 13:14:13 +0100 Subject: [PATCH] Fix tests --- Tests/Twig/BootstrapFormExtensionTest.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Tests/Twig/BootstrapFormExtensionTest.php b/Tests/Twig/BootstrapFormExtensionTest.php index 8eede98..cc7e083 100644 --- a/Tests/Twig/BootstrapFormExtensionTest.php +++ b/Tests/Twig/BootstrapFormExtensionTest.php @@ -125,11 +125,8 @@ public function testBackupFormSettingsRestoreFormSettings() $this->assertEquals(2, $this->extension->getLabelCol()); $this->assertEquals(3, $this->extension->getSimpleCol()); - try { - $this->extension->restoreFormSettings(); - $this->fail('Expected UnderflowException not thrown'); - } catch (\UnderflowException $e) { - } + // Nothing happens if we try to restore form settings but none exist + $this->extension->restoreFormSettings(); } /**