MINOR Fixed submitForm test in MultiFormTest

This commit is contained in:
Sean Harvey 2009-07-20 10:57:00 +00:00
parent 8e04dfbaa5
commit 75aa55be48

View File

@ -46,22 +46,23 @@ class MultiFormTest extends FunctionalTest {
$this->assertEquals(3, $this->form->getAllStepsLinear()->Count());
}
/*function testNextStepAction() {
function testNextStepAction() {
$this->get($this->controller->class);
$response = $this->submitForm('MultiFormTest_Form', 'next', array(
$response = $this->submitForm('MultiFormTest_Form', 'action_next', array(
'FirstName' => 'Joe',
'Surname' => 'Bloggs',
'Email' => 'joe@bloggs.com'
));
$this->assertEquals(200, $response->getStatusCode());
$this->assertNotNull($response->getBody());
}*/
}
}
class MultiFormTest_Controller extends Controller implements TestOnly {
function Link($action = null) {
return $this->class . '/' . $action;
function Link() {
return 'MultiFormTest_Controller';
}
public function Form($request = null) {