mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-13 10:42:16 +01:00
Add local setup for S3
This commit is contained in:
committed by
Constantin Graf
parent
fc614b796c
commit
9a8945b0dc
@@ -11,6 +11,7 @@ use Illuminate\Database\Eloquent\Collection;
|
||||
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
||||
use Illuminate\Support\Carbon;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Mockery\MockInterface;
|
||||
use TiMacDonald\Log\LogFake;
|
||||
|
||||
@@ -25,6 +26,16 @@ abstract class TestCase extends BaseTestCase
|
||||
LogFake::bind();
|
||||
}
|
||||
|
||||
protected function mockPrivateStorage(): void
|
||||
{
|
||||
Storage::fake(config('filesystems.default'));
|
||||
}
|
||||
|
||||
protected function mockPublicStorage(): void
|
||||
{
|
||||
Storage::fake(config('filesystems.public'));
|
||||
}
|
||||
|
||||
protected function tearDown(): void
|
||||
{
|
||||
// Note: It is necessary to clear the permission cache after each test, since the "scoped singletons" are not reset between tests.
|
||||
|
||||
Reference in New Issue
Block a user