splitted user name

This commit is contained in:
Čarodej
2022-01-14 11:17:00 +01:00
parent 7e9e9ee25b
commit 7dd116a769
45 changed files with 272 additions and 95 deletions

View File

@@ -15,6 +15,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_can_upload()
{
$user = User::factory()
->hasSettings()
->create();
$this->assertEquals(true, $user->canUpload(9999999));
@@ -26,6 +27,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_cant_upload_because_storage_limit_exceeded()
{
$user = User::factory()
->hasSettings()
->create();
File::factory()
@@ -43,6 +45,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_can_upload_because_storage_limitation_is_turned_off_and_user_has_unlimited_limit()
{
$user = User::factory()
->hasSettings()
->create();
// Turn off storage limitation
@@ -68,6 +71,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_cant_upload_because_storage_limitation_is_turned_on_and_user_exceeded_limit()
{
$user = User::factory()
->hasSettings()
->create();
// Turn on storage limitation
@@ -93,6 +97,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_can_create_new_folder()
{
$user = User::factory()
->hasSettings()
->create();
$this
@@ -113,6 +118,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_can_get_private_file()
{
$user = User::factory()
->hasSettings()
->create();
$file = File::factory()
@@ -135,6 +141,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_can_get_shared_file()
{
$user = User::factory()
->hasSettings()
->create();
$file = File::factory()
@@ -163,6 +170,7 @@ class DefaultRestrictionsTest extends TestCase
public function it_can_get_share_page()
{
$user = User::factory()
->hasSettings()
->create();
$share = Share::factory()

View File

@@ -27,6 +27,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_can_upload()
{
$user = User::factory()
->hasSettings()
->create();
$this->assertEquals(true, $user->canUpload(9999999));
@@ -38,6 +39,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_cant_upload_because_storage_limit_exceeded()
{
$user = User::factory()
->hasSettings()
->create();
File::factory()
@@ -55,6 +57,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_can_create_new_folder()
{
$user = User::factory()
->hasSettings()
->create();
$this
@@ -75,6 +78,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_cant_invite_team_members_into_team_folder_because_user_exceeded_members_limit()
{
$user = User::factory()
->hasSettings()
->hasFolders([
'team_folder' => true,
])
@@ -153,6 +157,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_can_get_private_file()
{
$user = User::factory()
->hasSettings()
->create();
$file = File::factory()
@@ -175,6 +180,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_can_get_shared_file()
{
$user = User::factory()
->hasSettings()
->create();
$file = File::factory()
@@ -203,6 +209,7 @@ class FixedBillingRestrictionsTest extends TestCase
public function it_can_get_share_page()
{
$user = User::factory()
->hasSettings()
->create();
$share = Share::factory()

View File

@@ -50,6 +50,7 @@ class MeteredBillingRestrictionsTest extends TestCase
public function it_can_create_new_folder()
{
$user = User::factory()
->hasSettings()
->create();
// Create basic folder
@@ -141,6 +142,7 @@ class MeteredBillingRestrictionsTest extends TestCase
public function it_can_get_private_file()
{
$user = User::factory()
->hasSettings()
->create();
$file = File::factory()
@@ -192,6 +194,7 @@ class MeteredBillingRestrictionsTest extends TestCase
public function it_can_get_shared_file()
{
$user = User::factory()
->hasSettings()
->create();
$file = File::factory()