public function FormBuilderFormBaseTest::testSaveAndLoad in Form Builder 7
@cover FormBuilderLoader::fromCache @cover FormBuilderFormBase::load @cover FormBuilderFormBase::save
File
- tests/
FormBuilderFormBaseTest.php, line 28
Class
Code
public function testSaveAndLoad() {
$loader = FormBuilderLoader::instance();
$form = $loader
->getForm('webform', 'test', 'test', array());
$form
->save();
$this
->assertEqual($form
->getFormArray(), $loader
->fromCache('webform', 'test', 'test')
->getFormArray());
}