feature: user list
This commit is contained in:
@@ -17,11 +17,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'admin@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_ADMIN,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_ADMIN'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
$this->actingAs($user);
|
||||
@@ -46,11 +46,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'usera@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
$user2 = \App\Models\User::create([
|
||||
@@ -59,11 +59,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'userb@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 2,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
\App\Models\Administration::create([
|
||||
@@ -101,11 +101,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'usera@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
$this->actingAs($user);
|
||||
@@ -126,11 +126,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => "user{$char}@runsystem.net",
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
\App\Models\Administration::create([
|
||||
@@ -163,11 +163,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'active@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
$inactiveUser = \App\Models\User::create([
|
||||
@@ -176,11 +176,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'inactive@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_INACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_INACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
\App\Models\Administration::create([
|
||||
@@ -218,11 +218,11 @@ class UserDashboardLayoutTest extends TestCase
|
||||
'mail' => 'usera@runsystem.net',
|
||||
'pass' => md5('password'),
|
||||
'departments' => 1,
|
||||
'role' => \App\Models\User::ROLE_MEMBER,
|
||||
'status' => \App\Models\User::STATUS_ACTIVE,
|
||||
'role' => config('constants.ROLE_MEMBER'),
|
||||
'status' => config('constants.STATUS_ACTIVE'),
|
||||
'card' => 10,
|
||||
'flag_send' => \App\Models\User::FLAG_SEND_ENABLED,
|
||||
'first_login' => \App\Models\User::FIRST_LOGIN_FALSE,
|
||||
'flag_send' => config('constants.FLAG_SEND_ENABLED'),
|
||||
'first_login' => config('constants.FIRST_LOGIN_FALSE'),
|
||||
]);
|
||||
|
||||
\App\Models\Administration::create([
|
||||
|
||||
Reference in New Issue
Block a user