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