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(); } /**