Updated example code

Made class extend FunctionalTest.
This commit is contained in:
ehyland 2015-03-30 16:59:31 +11:00
parent d71e2ea552
commit 77a51c79ab

View File

@ -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'
));