Skip to content

Instantly share code, notes, and snippets.

@netmeansnet
Created February 14, 2011 18:26
Show Gist options
  • Select an option

  • Save netmeansnet/826307 to your computer and use it in GitHub Desktop.

Select an option

Save netmeansnet/826307 to your computer and use it in GitHub Desktop.
<?php
class MyTestFunctional extends sfTestFunctional
{
public function __construct(sfBrowserBase $browser, lime_test $lime = null, $testers = array())
{
$testers = array_merge(array(
'doctrine' => 'sfTesterDoctrine',
), $testers);
parent::__construct($browser, $lime, $testers);
}
public function login($username = 'admin', $password = 'admin')
{
return $this->click('Signin', array('signin' => array('username' => $username, 'password' => $password)))->with('response')->isRedirected()->followRedirect();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment