mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Updated example code
Made class extend FunctionalTest.
This commit is contained in:
parent
d71e2ea552
commit
77a51c79ab
@ -12,7 +12,7 @@ response and modify the session within a test.
|
||||
:::php
|
||||
<?php
|
||||
|
||||
class HomePageTest extends SapphireTest {
|
||||
class HomePageTest extends FunctionalTest {
|
||||
|
||||
/**
|
||||
* Test generation of the view
|
||||
@ -24,7 +24,7 @@ response and modify the session within a test.
|
||||
$this->assertEquals(200, $page->getStatusCode());
|
||||
|
||||
// We should see a login form
|
||||
$login = $this->submitForm("#LoginForm", null, array(
|
||||
$login = $this->submitForm("LoginFormID", null, array(
|
||||
'Email' => 'test@test.com',
|
||||
'Password' => 'wrongpassword'
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user