Skip to content

Instantly share code, notes, and snippets.

@muhamed-didovic
Forked from JeffreyWay/LoginCept.php
Last active August 29, 2015 14:11
Show Gist options
  • Select an option

  • Save muhamed-didovic/2701e819ab838c14de54 to your computer and use it in GitHub Desktop.

Select an option

Save muhamed-didovic/2701e819ab838c14de54 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