function testPerformFormValid() { $validator = new Validator(); $toolkit =& Limb :: toolkit(); $request =& $toolkit->getRequest(); $request->set('submitted', 1); $command = new FormProcessingCommand('test_form', LIMB_SINGLE_FORM, $validator); $this->assertEqual($command->perform(), LIMB_STATUS_OK); }
function performFormProcessing() { include_once LIMB_DIR . '/core/commands/FormProcessingCommand.class.php'; $form_command = new FormProcessingCommand($this->form_id, false, $this->validator); return $form_command->perform(); }