- set default_max_team_member

- generate traffic for all users
This commit is contained in:
Čarodej
2021-11-30 17:46:21 +01:00
parent c7c81dda34
commit ca257ae113
13 changed files with 103 additions and 61 deletions

View File

@@ -19,7 +19,7 @@ class SignFlowTest extends TestCase
{
collect([
[
'name' => 'default_storage_amount',
'name' => 'default_max_storage_amount',
'value' => 12,
],
[

View File

@@ -95,7 +95,7 @@ class UserSubscriptionTest extends TestCase
SubscriptionWasExpired::dispatch($user->subscription);
$this->assertDatabaseHas('user_limitations', [
'max_storage_amount' => 1,
'max_storage_amount' => 5,
'max_team_members' => 5,
]);
}

View File

@@ -188,7 +188,7 @@ class SetupWizardTest extends TestCase
]);
$this->assertDatabaseHas('settings', [
'name' => 'default_storage_amount',
'name' => 'default_max_storage_amount',
'value' => '10',
]);

View File

@@ -46,6 +46,26 @@ class TeamLimitsTest extends TestCase
'email' => 'test@doe.com',
'permission' => 'can-edit',
],
[
'email' => 'test2@doe.com',
'permission' => 'can-edit',
],
[
'email' => 'test3@doe.com',
'permission' => 'can-edit',
],
[
'email' => 'test4@doe.com',
'permission' => 'can-edit',
],
[
'email' => 'test5@doe.com',
'permission' => 'can-edit',
],
[
'email' => 'test6@doe.com',
'permission' => 'can-edit',
],
],
])
->assertStatus(423);