-
-
Save RimonEkjon/f049525650cea2ce4bf6 to your computer and use it in GitHub Desktop.
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 | |
$I = new TestGuy($scenario); | |
$I->wantTo('register for a new account'); | |
$I->amOnPage('/register'); | |
$I->see('Register', 'h1'); | |
$I->fillField('email', '[email protected]'); | |
$I->fillField('Password:', 'password'); | |
$I->click('Register'); | |
$I->seeCurrentUrlEquals('/login'); | |
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
<!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