Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?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