function testGetFormActions()
 {
     // generating the fieldset of actions
     $form = $this->objFromFixture('UserDefinedForm', 'basic-form-page');
     $controller = new UserDefinedFormControllerTest_Controller($form);
     $actions = $controller->getFormActions();
     // by default will have 1 submit button which links to process
     $expected = new FieldSet(new FormAction('process', 'Submit'));
     $this->assertEquals($actions, $expected);
     // the custom popup should have a reset button and a custom text
     $custom = $this->objFromFixture('UserDefinedForm', 'form-with-reset-and-custom-action');
     $controller = new UserDefinedFormControllerTest_Controller($custom);
     $actions = $controller->getFormActions();
     $expected = new FieldSet(new FormAction('process', 'Custom Button'));
     $expected->push(new ResetFormAction("clearForm"));
     $this->assertEquals($actions, $expected);
 }