Updater class tests

This commit is contained in:
Victor Gonzalez
2019-01-28 11:30:00 -05:00
parent 02867f5be7
commit cafa758a99
10 changed files with 184 additions and 21 deletions

View File

@@ -2,6 +2,9 @@
namespace distinctm\LaravelDataSync\Tests;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TestCase extends \Orchestra\Testbench\TestCase
{
protected function getEnvironmentSetUp($app)
@@ -12,4 +15,21 @@ class TestCase extends \Orchestra\Testbench\TestCase
'database' => ':memory:'
]);
}
protected function setUp()
{
parent::setUp();
Schema::create('supervisors', function (Blueprint $table) {
$table->increments('id');
$table->string('name');
});
Schema::create('roles', function (Blueprint $table) {
$table->increments('id');
$table->string('slug');
$table->unsignedInteger('supervisor_id')->nullable();
$table->string('category')->nullable();
});
}
}