- refactored user_scope to author

- added author_id for future teams implementation
This commit is contained in:
Peter Papp
2021-03-19 11:27:58 +01:00
parent 19a75d2fb1
commit aa51484303
17 changed files with 176 additions and 207 deletions

View File

@@ -224,9 +224,9 @@ class VisitorManipulatingTest extends TestCase
}
$this->assertDatabaseHas('folders', [
'name' => 'Awesome New Folder',
'parent_id' => $folder->id,
'user_scope' => 'editor',
'name' => 'Awesome New Folder',
'parent_id' => $folder->id,
'author' => 'visitor',
]);
});
}
@@ -326,8 +326,8 @@ class VisitorManipulatingTest extends TestCase
$folder = Folder::factory(Folder::class)
->create([
'user_id' => $user->id,
'user_scope' => 'master',
'user_id' => $user->id,
'author' => 'user',
]);
$share = Share::factory(Share::class)
@@ -374,7 +374,7 @@ class VisitorManipulatingTest extends TestCase
]);
$this->assertDatabaseHas('files', [
'user_scope' => 'editor',
'author' => 'visitor',
]);
Storage::disk('local')