added it_update_user_settings, it_update_user_avatar test

This commit is contained in:
Peter Papp
2021-03-03 08:42:07 +01:00
parent 7f21755f5a
commit cd9d1d91bd
8 changed files with 78 additions and 86 deletions

View File

@@ -27,7 +27,6 @@ class UserFactory extends Factory
'role' => $this->faker->randomElement(
['user', 'admin']
),
'name' => $this->faker->name(),
'email' => $this->faker->unique()->safeEmail,
'email_verified_at' => now(),
'password' => Hash::make('secret'),

View File

@@ -16,8 +16,6 @@ class CreateUsersTable extends Migration
Schema::create('users', function (Blueprint $table) {
$table->uuid('id');
$table->enum('role', ['admin', 'user'])->default('user');
$table->string('name');
$table->string('avatar')->nullable();
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');

View File

@@ -16,6 +16,7 @@ class CreateUserSettingsTable extends Migration
Schema::create('user_settings', function (Blueprint $table) {
$table->uuid('user_id');
$table->integer('storage_capacity')->default(5);
$table->string('avatar')->nullable();
$table->text('name')->nullable();
$table->text('address')->nullable();
$table->text('state')->nullable();