Migrate permission away from Jetstream; Moved update user to REST API

This commit is contained in:
Constantin Graf
2026-05-21 23:22:09 +02:00
parent 8637437808
commit bde3ec7a75
27 changed files with 1190 additions and 228 deletions

View File

@@ -9,7 +9,6 @@ use App\Models\Organization;
use App\Models\User;
use App\Service\PermissionStore;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Laravel\Jetstream\Jetstream;
use PHPUnit\Framework\Attributes\CoversClass;
use Tests\TestCase;
@@ -122,7 +121,7 @@ class PermissionStoreTest extends TestCase
$result = $permissionStore->getPermissions($organization);
// Assert
$this->assertSame(Jetstream::findRole(Role::Employee->value)->permissions, $result);
$this->assertSame(PermissionStore::permissionsForRole(Role::Employee->value), $result);
}
public function test_employee_does_not_have_task_permissions_by_default(): void