Skip to content

Commit

Permalink
Fixed tests.
Browse files Browse the repository at this point in the history
(cherry picked from commit 51dddba)
  • Loading branch information
nqxcode committed Jun 15, 2017
1 parent a9d9fd6 commit 81ebd2c
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
34 changes: 34 additions & 0 deletions tests/migrations/2015_12_12_200152_create_tools_table.php
@@ -0,0 +1,34 @@
<?php

use Carbon\Carbon;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateToolsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tools', function (Blueprint $table) {
$table->increments('id');
$table->string('name')->nullable();
$table->string('description')->nullable();

$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('tools');
}
}
15 changes: 15 additions & 0 deletions tests/models/Tool.php
@@ -0,0 +1,15 @@
<?php namespace tests\models;

use Illuminate\Database\Eloquent\Model;
use Nqxcode\LuceneSearch\Model\SearchTrait;

/**
* Class Tool
* @property string $name
* @property string $description
* @package tests\models
*/
class Tool extends Model
{
use SearchTrait;
}

0 comments on commit 81ebd2c

Please sign in to comment.