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

View File

@ -210,7 +210,7 @@ class SecurityTest extends FunctionalTest {
// Request new password by email
$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');