MINOR Fixing broken tests

This commit is contained in:
Sean Harvey 2012-04-20 15:02:43 +12:00
parent 8e48e6e231
commit 007ed25c0b
2 changed files with 5 additions and 7 deletions

View File

@ -194,9 +194,8 @@ class FormTest extends FunctionalTest {
function testSessionValidationMessage() { function testSessionValidationMessage() {
$this->get('FormTest_Controller'); $this->get('FormTest_Controller');
$response = $this->submitForm( $response = $this->post(
'Form_Form', 'FormTest_Controller/Form',
null,
array( array(
'Email' => 'invalid', 'Email' => 'invalid',
// leaving out "Required" field // leaving out "Required" field
@ -222,9 +221,8 @@ class FormTest extends FunctionalTest {
function testSessionSuccessMessage() { function testSessionSuccessMessage() {
$this->get('FormTest_Controller'); $this->get('FormTest_Controller');
$response = $this->submitForm( $response = $this->post(
'Form_Form', 'FormTest_Controller/Form',
null,
array( array(
'Email' => 'test@test.com', 'Email' => 'test@test.com',
'SomeRequiredField' => 'test', 'SomeRequiredField' => 'test',

View File

@ -210,7 +210,7 @@ class SecurityTest extends FunctionalTest {
// Request new password by email // Request new password by email
$response = $this->get('Security/lostpassword'); $response = $this->get('Security/lostpassword');
$response = $this->submitForm('MemberLoginForm_LostPasswordForm', null, array('Email' => 'sam@silverstripe.com')); $response = $this->post('Security/LostPasswordForm', array('Email' => 'sam@silverstripe.com'));
$this->assertEmailSent('sam@silverstripe.com'); $this->assertEmailSent('sam@silverstripe.com');