mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-06 08:08:33 +02:00
Merge pull request #4046 from ehyland/patch-1
DOCS Updated example code
This commit is contained in:
commit
adbf9b80f7
@ -12,7 +12,7 @@ response and modify the session within a test.
|
|||||||
:::php
|
:::php
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class HomePageTest extends SapphireTest {
|
class HomePageTest extends FunctionalTest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test generation of the view
|
* Test generation of the view
|
||||||
@ -24,7 +24,7 @@ response and modify the session within a test.
|
|||||||
$this->assertEquals(200, $page->getStatusCode());
|
$this->assertEquals(200, $page->getStatusCode());
|
||||||
|
|
||||||
// We should see a login form
|
// We should see a login form
|
||||||
$login = $this->submitForm("#LoginForm", null, array(
|
$login = $this->submitForm("LoginFormID", null, array(
|
||||||
'Email' => 'test@test.com',
|
'Email' => 'test@test.com',
|
||||||
'Password' => 'wrongpassword'
|
'Password' => 'wrongpassword'
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user