Skip to content

Commit

Permalink
Return tests to green
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed May 27, 2014
1 parent 1d7c933 commit ddb9363
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 7 deletions.
6 changes: 4 additions & 2 deletions tests/stubs/AddTitleToOrdersTable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class AddTitleToOrdersTable extends Migration {
*/
public function up()
{
Schema::table('orders', function(Blueprint $table) {
Schema::table('orders', function(Blueprint $table)
{
$table->string('title');
});
}
Expand All @@ -25,7 +26,8 @@ class AddTitleToOrdersTable extends Migration {
*/
public function down()
{
Schema::table('orders', function(Blueprint $table) {
Schema::table('orders', function(Blueprint $table)
{
$table->dropColumn('title');
});
}
Expand Down
3 changes: 2 additions & 1 deletion tests/stubs/CreateComplexOrdersTable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class CreateOrdersTable extends Migration {
*/
public function up()
{
Schema::create('orders', function(Blueprint $table) {
Schema::create('orders', function(Blueprint $table)
{
$table->increments('id');
$table->string('title', 50)->unique();
$table->text('body')->unique()->nullable();
Expand Down
3 changes: 2 additions & 1 deletion tests/stubs/CreateOrdersTable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class CreateOrdersTable extends Migration {
*/
public function up()
{
Schema::create('orders', function(Blueprint $table) {
Schema::create('orders', function(Blueprint $table)
{
$table->increments('id');
$table->string('name');
$table->timestamps();
Expand Down
3 changes: 2 additions & 1 deletion tests/stubs/DropOrdersTable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class DropOrdersTable extends Migration {
*/
public function down()
{
Schema::create('orders', function(Blueprint $table) {
Schema::create('orders', function(Blueprint $table)
{
$table->increments('id');
$table->string('title');
$table->timestamps();
Expand Down
7 changes: 7 additions & 0 deletions tests/stubs/OrdersController.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class OrdersController extends \BaseController {

/**
* Display a listing of the resource.
* GET /orders
*
* @return Response
*/
Expand All @@ -14,6 +15,7 @@ class OrdersController extends \BaseController {

/**
* Show the form for creating a new resource.
* GET /orders/create
*
* @return Response
*/
Expand All @@ -24,6 +26,7 @@ class OrdersController extends \BaseController {

/**
* Store a newly created resource in storage.
* POST /orders
*
* @return Response
*/
Expand All @@ -34,6 +37,7 @@ class OrdersController extends \BaseController {

/**
* Display the specified resource.
* GET /orders/{id}
*
* @param int $id
* @return Response
Expand All @@ -45,6 +49,7 @@ class OrdersController extends \BaseController {

/**
* Show the form for editing the specified resource.
* GET /orders/{id}/edit
*
* @param int $id
* @return Response
Expand All @@ -56,6 +61,7 @@ class OrdersController extends \BaseController {

/**
* Update the specified resource in storage.
* PUT /orders/{id}
*
* @param int $id
* @return Response
Expand All @@ -67,6 +73,7 @@ class OrdersController extends \BaseController {

/**
* Remove the specified resource from storage.
* DELETE /orders/{id}
*
* @param int $id
* @return Response
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions tests/stubs/RemoveTitleFromOrdersTable.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class RemoveTitleFromOrdersTable extends Migration {
*/
public function up()
{
Schema::table('orders', function(Blueprint $table) {
Schema::table('orders', function(Blueprint $table)
{
$table->dropColumn('title');
});
}
Expand All @@ -25,7 +26,8 @@ class RemoveTitleFromOrdersTable extends Migration {
*/
public function down()
{
Schema::table('orders', function(Blueprint $table) {
Schema::table('orders', function(Blueprint $table)
{
$table->string('title');
});
}
Expand Down

0 comments on commit ddb9363

Please sign in to comment.