diff --git a/tests/PostgresRLSTest.php b/tests/PostgresRLSTest.php index c7e87a2d..f33f7d66 100644 --- a/tests/PostgresRLSTest.php +++ b/tests/PostgresRLSTest.php @@ -162,7 +162,9 @@ test('global scope is not applied when using rls', function () { test('queries are correctly scoped using RLS', function() { // Create rls policies for tables + dump('creating rls policies', tenancy()->getTenantModels()); pest()->artisan('tenants:create-rls-policies'); + dump('policies created', DB::select('select * from pg_policies')); // Create two tenants with postgres users $tenant = Tenant::create(); @@ -174,8 +176,6 @@ test('queries are correctly scoped using RLS', function() { // Create posts and comments for both tenants tenancy()->initialize($tenant); - dd(DB::select('select * from pg_policies')); - $post1 = RlsPost::create(['text' => 'first post']); $post1Comment = $post1->scoped_comments()->create(['text' => 'first comment']);