Commit 183972f2 authored by abkrim's avatar abkrim 😀
Browse files

Fail Test DB

parent b3ecfc38
......@@ -27,6 +27,13 @@ class DbSchemaServiceProvider extends ServiceProvider
// $this->loadRoutesFrom(__DIR__.'/routes.php');
if ($this->app->runningInConsole()) {
$this->commands([
ShowSchema::class,
ListSchema::class,
]);
$this->publishes([
__DIR__.'/../config/config.php' => config_path('db-schema.php'),
], 'config');
......
......@@ -2,6 +2,7 @@
namespace Abkrim\DbSchema\Tests;
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\DB;
use PHPUnit\Framework\TestCase;
use Faker\Factory as Faker;
......@@ -13,18 +14,11 @@ class DbSchemaTest extends TestCase
{
$faker = Faker::create();
//d($faker->unique()->email);
$user = DB::table('users')->insert([
'email' => $faker->unique()->email,
'name' => $faker->unique()->name(),
// $table->bigIncrements('id');
// $table->string('name');
// $table->string('email')->unique();
// $table->timestamp('email_verified_at')->nullable();
// $table->string('password');
// $table->rememberToken();
// $table->boolean('is_super_admin')->default(false);
// $table->timestamps();
'name' => $faker->unique()->name,
'password' => $faker->password(10),
'rememberToken' => $faker->md5
]);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment