You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
592 B
PHP
28 lines
592 B
PHP
<?php
|
|
|
|
class Selenium_Login extends Selenium_Test
|
|
{
|
|
protected function setUp()
|
|
{
|
|
bootstrap::init_db();
|
|
parent::setUp();
|
|
}
|
|
|
|
public function testLogin()
|
|
{
|
|
// first test, we're already on the login page
|
|
$this->url(TESTS_URL);
|
|
|
|
// task should be set to 'login'
|
|
$env = $this->get_env();
|
|
$this->assertEquals('login', $env['task']);
|
|
|
|
// test valid login
|
|
$this->login();
|
|
|
|
// task should be set to 'mail' now
|
|
$env = $this->get_env();
|
|
$this->assertEquals('mail', $env['task']);
|
|
}
|
|
}
|