Skip to content

Instantly share code, notes, and snippets.

@mishbah
Forked from JeffreyWay/LoginCept.php
Created December 13, 2013 01:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishbah/7938696 to your computer and use it in GitHub Desktop.
Save mishbah/7938696 to your computer and use it in GitHub Desktop.
<?php
$I = new TestGuy($scenario);
$I->wantTo('register for a new account');
$I->amOnPage('/register');
$I->see('Register', 'h1');
$I->fillField('email', 'joe@sample.com');
$I->fillField('Password:', 'password');
$I->click('Register');
$I->seeCurrentUrlEquals('/login');
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>Register</title>
</head>
<body>
<h1>Register</h1>
{{ Form::open() }}
{{ Form::label('email', 'Email:') }}
{{ Form::text('email') }}
{{ Form::label('password', 'Password:') }}
{{ Form::text('password') }}
{{ Form::submit('Register') }}
{{ Form::close() }}
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment