medialibrary-helper/tests/Pest.php

12 lines
485 B
PHP
Raw Permalink Normal View History

2023-03-07 15:31:24 +01:00
<?php
2024-09-21 17:13:38 +02:00
use Illuminate\Support\Facades\Gate;
2023-03-07 15:31:24 +01:00
use Illuminate\Support\Facades\Storage;
2024-01-03 13:42:29 +01:00
use Workbench\App\Models\Post;
use Workbench\App\Policies\PostPolicy;
2023-03-07 15:31:24 +01:00
uses(Zoomyboy\MedialibraryHelper\Tests\TestCase::class)->in('Feature');
uses(Illuminate\Foundation\Testing\RefreshDatabase::class)->in('Feature');
2024-01-03 15:47:41 +01:00
uses()->beforeEach(fn () => Storage::fake('media') && Storage::fake('temp'))->in('Feature');
2024-01-03 13:42:29 +01:00
uses()->beforeEach(fn () => Gate::policy(Post::class, PostPolicy::class))->in('Feature');