This repository was archived by the owner on Feb 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Expand file tree Collapse file tree 8 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 7
7
use Laravel \Passport \Passport ;
8
8
use App \Events \AssetWasCreated ;
9
9
use Illuminate \Support \Facades \Storage ;
10
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
10
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
11
11
12
12
class UploadImageTest extends TestCase
13
13
{
14
14
15
- use DatabaseMigrations ;
15
+ use RefreshDatabase ;
16
16
17
17
18
18
function test_it_uploads_an_image_from_direct_file ()
Original file line number Diff line number Diff line change 7
7
use App \Entities \Permission ;
8
8
use Laravel \Passport \Passport ;
9
9
use Spatie \Permission \PermissionRegistrar ;
10
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
10
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
11
11
12
12
class PermissionsEndpointsTest extends TestCase
13
13
{
14
14
15
- use DatabaseMigrations ;
15
+ use RefreshDatabase ;
16
16
17
17
18
18
function setUp ()
Original file line number Diff line number Diff line change 7
7
use Laravel \Passport \Passport ;
8
8
use Illuminate \Contracts \Hashing \Hasher ;
9
9
use Spatie \Permission \PermissionRegistrar ;
10
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
10
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
11
11
12
12
class ProfileEndpointsTest extends TestCase
13
13
{
14
14
15
- use DatabaseMigrations ;
15
+ use RefreshDatabase ;
16
16
17
17
function setUp ()
18
18
{
Original file line number Diff line number Diff line change 8
8
use App \Entities \Permission ;
9
9
use Laravel \Passport \Passport ;
10
10
use Spatie \Permission \PermissionRegistrar ;
11
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
11
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
12
12
13
13
class RolesEndpointsTest extends TestCase
14
14
{
15
15
16
- use DatabaseMigrations ;
16
+ use RefreshDatabase ;
17
17
18
18
function setUp ()
19
19
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests \Feature ;
4
4
5
- use App \Entities \Role ;
6
5
use Tests \TestCase ;
6
+ use App \Entities \Role ;
7
7
use App \Entities \User ;
8
8
use Laravel \Passport \Passport ;
9
9
use Spatie \Permission \PermissionRegistrar ;
10
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
10
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
11
11
12
12
class UsersEndpointsTest extends TestCase
13
13
{
14
14
15
- use DatabaseMigrations ;
15
+ use RefreshDatabase ;
16
16
17
17
function setUp ()
18
18
{
Original file line number Diff line number Diff line change 5
5
use Tests \TestCase ;
6
6
use App \Entities \Role ;
7
7
use App \Entities \Permission ;
8
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
8
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
9
9
10
10
class RoleTest extends TestCase
11
11
{
12
12
13
- use DatabaseMigrations ;
13
+ use RefreshDatabase ;
14
14
15
15
function test_it_syncs_permissions_by_object_collection ()
16
16
{
Original file line number Diff line number Diff line change 3
3
namespace Tests \Unit \Services \Installation ;
4
4
5
5
use Tests \TestCase ;
6
- use \Illuminate \Foundation \Testing \DatabaseMigrations ;
6
+ use \Illuminate \Foundation \Testing \RefreshDatabase ;
7
7
8
8
class AppInstallationServiceTest extends TestCase
9
9
{
10
10
11
- use DatabaseMigrations ;
11
+ use RefreshDatabase ;
12
12
13
13
protected function makeService ()
14
14
{
Original file line number Diff line number Diff line change 2
2
3
3
namespace Tests \Unit \Services \Installation ;
4
4
5
- use Illuminate \Validation \ValidationException ;
6
5
use Tests \TestCase ;
7
- use Illuminate \Foundation \Testing \DatabaseMigrations ;
6
+ use Illuminate \Validation \ValidationException ;
7
+ use Illuminate \Foundation \Testing \RefreshDatabase ;
8
8
9
9
10
10
class InstallAppHandlerTest extends TestCase
11
11
{
12
12
13
- use DatabaseMigrations ;
13
+ use RefreshDatabase ;
14
14
15
15
function makeHandler ()
16
16
{
You can’t perform that action at this time.
0 commit comments