Created
October 23, 2012 15:04
-
-
Save DavertMik/3939277 to your computer and use it in GitHub Desktop.
Using Helpers in Codeception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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