Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
4,073 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,5 @@ composer.lock | |
.env.php | ||
.DS_Store | ||
Thumbs.db | ||
|
||
tests/_output/* |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
/** | ||
* Class RegistrationController | ||
* | ||
* @author Valentin PRUGNAUD <valentin@whatdafox.com> | ||
* @url http://www.foxted.com | ||
*/ | ||
class RegistrationController extends \BaseController | ||
{ | ||
|
||
/** | ||
* Show a form to register the user | ||
* @return Response | ||
*/ | ||
public function create() | ||
{ | ||
return View::make('registration.create'); | ||
} | ||
|
||
/** | ||
* Create a new Larabook user | ||
* @return string | ||
*/ | ||
public function store() | ||
{ | ||
return Redirect::home(); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
<?php | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Application Routes | ||
|-------------------------------------------------------------------------- | ||
| | ||
| Here is where you can register all of the routes for an application. | ||
| It's a breeze. Simply tell Laravel the URIs it should respond to | ||
| and give it the Closure to execute when that URI is requested. | ||
| | ||
*/ | ||
Route::get('/', [ | ||
'as' => 'home', | ||
'uses' => 'PagesController@home' | ||
]); | ||
|
||
Route::get('/', 'PagesController@home'); | ||
/** | ||
* Registration | ||
*/ | ||
Route::get('register', [ | ||
'as' => 'register_path', | ||
'uses' => 'RegistrationController@create' | ||
]); | ||
|
||
Route::post('register', [ | ||
'as' => 'register_path', | ||
'uses' => 'RegistrationController@store' | ||
]); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@extends('layouts.default') | ||
|
||
@section('content') | ||
<h1>Register!</h1> | ||
|
||
{{ Form::open(['route' => 'register_path']) }} | ||
|
||
<div class="form-group"> | ||
{{ Form::label('username', 'Username:') }} | ||
{{ Form::text('username', null, ['class' => 'form-control']) }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
{{ Form::label('email', 'Email:') }} | ||
{{ Form::text('email', null, ['class' => 'form-control']) }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
{{ Form::label('password', 'Password:') }} | ||
{{ Form::password('password', ['class' => 'form-control']) }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
{{ Form::label('password_confirmation', 'Password Confirmation:') }} | ||
{{ Form::password('password_confirmation', ['class' => 'form-control']) }} | ||
</div> | ||
|
||
<div class="form-group"> | ||
{{ Form::submit('Sign Up', ['class' => 'btn btn-primary']) }} | ||
</div> | ||
|
||
{{ Form::close() }} | ||
@stop |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
actor: Tester | ||
paths: | ||
tests: tests | ||
log: tests/_output | ||
data: tests/_data | ||
helpers: tests/_support | ||
settings: | ||
bootstrap: _bootstrap.php | ||
colors: true | ||
memory_limit: 1024M | ||
modules: | ||
config: | ||
Db: | ||
dsn: '' | ||
user: '' | ||
password: '' | ||
dump: tests/_data/dump.sql |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
// This is global bootstrap for autoloading |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Codeception\Module; | ||
|
||
// here you can define custom actions | ||
// all public methods declared in helper class will be available in $I | ||
|
||
class AcceptanceHelper extends \Codeception\Module | ||
{ | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Codeception\Module; | ||
|
||
// here you can define custom actions | ||
// all public methods declared in helper class will be available in $I | ||
|
||
class FunctionalHelper extends \Codeception\Module | ||
{ | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
namespace Codeception\Module; | ||
|
||
// here you can define custom actions | ||
// all public methods declared in helper class will be available in $I | ||
|
||
class UnitHelper extends \Codeception\Module | ||
{ | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Codeception Test Suite Configuration | ||
|
||
# suite for acceptance tests. | ||
# perform tests in browser using the WebDriver or PhpBrowser. | ||
# If you need both WebDriver and PHPBrowser tests - create a separate suite. | ||
|
||
class_name: AcceptanceTester | ||
modules: | ||
enabled: | ||
- PhpBrowser | ||
- AcceptanceHelper | ||
config: | ||
PhpBrowser: | ||
url: 'http://localhost/myapp/' |
Oops, something went wrong.