Skip to content

Commit

Permalink
[FIX] Migration issue with using RefreshDatabase for now
Browse files Browse the repository at this point in the history
  • Loading branch information
moaminsharifi committed Jun 16, 2024
1 parent dfa9e02 commit 962738d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tests/Feature/ManageAdminWithCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

namespace EasyPanelTest\Feature;

use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\Artisan;
use EasyPanelTest\TestCase;
use EasyPanel\Support\Contract\UserProviderFacade;

use Illuminate\Support\Facades\Schema;
class ManageAdminWithCommandTest extends TestCase
{
use RefreshDatabase;
use DatabaseMigrations;

/** @test * */
public function create_admin_with_command(){

Artisan::call('panel:add', [
'user' => $this->user->id
]);
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/MiddlewareTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
namespace EasyPanelTest\Feature;

use EasyPanel\Http\Middleware\isAdmin;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Auth;
Expand All @@ -12,7 +13,7 @@

class MiddlewareTest extends TestCase
{
use RefreshDatabase;
use DatabaseMigrations;

protected function setUp(): void
{
Expand Down
3 changes: 2 additions & 1 deletion tests/Feature/UserProviderFacadeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
namespace EasyPanelTest\Feature;

use EasyPanel\Support\Contract\UserProviderFacade;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\RefreshDatabase;
use EasyPanelTest\TestCase;

class UserProviderFacadeTest extends TestCase
{
use RefreshDatabase;
use DatabaseMigrations;

/** @test * */
public function find_a_real_user_by_id(){
Expand Down

0 comments on commit 962738d

Please sign in to comment.