PersonalAccessTokenTest refactoring

This commit is contained in:
Peter Papp
2021-07-18 10:20:47 +02:00
parent 4384e50f34
commit aeb5c8419a
21 changed files with 119 additions and 173 deletions
-6
View File
@@ -4,20 +4,14 @@ namespace Tests\Feature\Share;
use App\Models\File;
use App\Models\Folder;
use App\Models\Share;
use App\Models\User;
use App\Notifications\SharedSendViaEmail;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Support\Facades\Notification;
use Laravel\Sanctum\Sanctum;
use Tests\TestCase;
class UserShareTest extends TestCase
{
use DatabaseMigrations;
/**
* @test
*/
@@ -7,17 +7,13 @@ use App\Models\Share;
use App\Models\User;
use App\Models\Zip;
use App\Services\SetupService;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Cookie;
use Illuminate\Support\Str;
use Storage;
use Tests\TestCase;
class VisitorAccessToItemsTest extends TestCase
{
use DatabaseMigrations;
private $setup;
public function __construct()
@@ -7,8 +7,6 @@ use App\Models\Folder;
use App\Models\Share;
use App\Models\User;
use App\Models\Zip;
use Hash;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use App\Services\SetupService;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Str;
@@ -17,8 +15,6 @@ use Tests\TestCase;
class VisitorBrowseTest extends TestCase
{
use DatabaseMigrations;
public function __construct()
{
parent::__construct();
@@ -7,15 +7,12 @@ use App\Models\Folder;
use App\Models\Share;
use App\Models\User;
use App\Services\SetupService;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Http\UploadedFile;
use Storage;
use Tests\TestCase;
class VisitorManipulatingTest extends TestCase
{
use DatabaseMigrations;
public function __construct()
{
parent::__construct();