]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/RegeneratePermissionsCommandTest.php
Added language list favourites sorting, updated styles
[bookstack] / tests / Commands / RegeneratePermissionsCommandTest.php
index 2090c991bebbf4bcd4b363f4a31ff0363f5f38cc..d514e5f9d90262c9ece2d2ad73ab425ab8f192bd 100644 (file)
@@ -4,6 +4,7 @@ namespace Tests\Commands;
 
 use BookStack\Auth\Permissions\JointPermission;
 use BookStack\Entities\Models\Page;
+use Illuminate\Support\Facades\Artisan;
 use Illuminate\Support\Facades\DB;
 use Tests\TestCase;
 
@@ -11,13 +12,13 @@ class RegeneratePermissionsCommandTest extends TestCase
 {
     public function test_regen_permissions_command()
     {
-        \DB::rollBack();
+        DB::rollBack();
         JointPermission::query()->truncate();
         $page = Page::first();
 
         $this->assertDatabaseMissing('joint_permissions', ['entity_id' => $page->id]);
 
-        $exitCode = \Artisan::call('bookstack:regenerate-permissions');
+        $exitCode = Artisan::call('bookstack:regenerate-permissions');
         $this->assertTrue($exitCode === 0, 'Command executed successfully');
         DB::beginTransaction();