Skip to content

Instantly share code, notes, and snippets.

@DavertMik
Created October 23, 2012 15:04
Show Gist options
  • Save DavertMik/3939277 to your computer and use it in GitHub Desktop.
Save DavertMik/3939277 to your computer and use it in GitHub Desktop.
Using Helpers in Codeception
<?php
namespace Codeception\Module;
class WebHelper extends \Codeception\Module
{
public function seeUserAuthenticated($account, $username, $password)
{
$b = $this->getModule('PhpBrowser');
$b->fillField('fsaccount', $account);
$b->fillField('fsusername', $username);
$b->fillField('fspassword', $password);
$b->click('loginbtn');
$b->see('Dashboard');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment