]> BookStack Code Mirror - bookstack/blobdiff - tests/Commands/RegeneratePermissionsCommandTest.php
respective book and chapter structure added.
[bookstack] / tests / Commands / RegeneratePermissionsCommandTest.php
index b916a8060f84bdb4afa3082f22c773e0e1a5d02a..75c6c1b3851e634635c7ed30087fda73964f73d8 100644 (file)
@@ -3,8 +3,7 @@
 namespace Tests\Commands;
 
 use BookStack\Auth\Permissions\CollapsedPermission;
-use BookStack\Auth\Permissions\EntityPermission;
-use BookStack\Auth\Permissions\JointPermission;
+use BookStack\Permissions\Models\JointPermission;
 use Illuminate\Support\Facades\Artisan;
 use Illuminate\Support\Facades\DB;
 use Tests\TestCase;
@@ -29,7 +28,7 @@ class RegeneratePermissionsCommandTest extends TestCase
             'entity_id' => $page->id,
             'entity_type' => 'page',
             'role_id' => $role->id,
-            'has_permission' => 1,
+            'status' => 3, // Explicit allow
         ]);
 
         $page->permissions()->delete();