mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Fixing broken tests
This commit is contained in:
parent
8e48e6e231
commit
007ed25c0b
@ -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',
|
||||
|
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user