Skip to content

Commit c301bae

Browse files
author
Florian Eckerstorfer
committed
Fix tests
1 parent 651f693 commit c301bae

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Tests/Twig/BootstrapFormExtensionTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,8 @@ public function testBackupFormSettingsRestoreFormSettings()
125125
$this->assertEquals(2, $this->extension->getLabelCol());
126126
$this->assertEquals(3, $this->extension->getSimpleCol());
127127

128-
try {
129-
$this->extension->restoreFormSettings();
130-
$this->fail('Expected UnderflowException not thrown');
131-
} catch (\UnderflowException $e) {
132-
}
128+
// Nothing happens if we try to restore form settings but none exist
129+
$this->extension->restoreFormSettings();
133130
}
134131

135132
/**

0 commit comments

Comments
 (0)