Files
laravel-data-sync/tests/TestCase.php
2019-01-28 11:30:00 -05:00

35 lines
944 B
PHP

<?php
namespace distinctm\LaravelDataSync\Tests;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class TestCase extends \Orchestra\Testbench\TestCase
{
protected function getEnvironmentSetUp($app)
{
$app['config']->set('database.default', 'testdb');
$app['config']->set('database.connections.testdb', [
'driver' => 'sqlite',
'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();
});
}
}