added shareEditor test

This commit is contained in:
Peter Papp
2021-03-10 10:38:41 +01:00
parent 8d85aad601
commit 8a4ffd03c6
17 changed files with 233 additions and 95 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace Tests\Feature;
use App\Services\SetupService;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Storage;
use Tests\TestCase;
class SetupServiceTest extends TestCase
{
public function __construct()
{
parent::__construct();
$this->setup = app()->make(SetupService::class);
}
/**
* @test
*/
public function it_create_system_folders()
{
Storage::fake('local');
$this->setup->create_directories();
collect(['avatars', 'chunks', 'system', 'files', 'temp', 'zip'])
->each(function ($directory) {
Storage::disk('local')->assertExists($directory);
});
}
}