Skip to content

Commit

Permalink
Make with() matrix syntax more clear by using with() multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
lukinovec committed Jan 14, 2025
1 parent a5c79d4 commit 1f41a8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions tests/RLS/PolicyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,4 @@
INSERT INTO posts (text, tenant_id, author_id)
VALUES ('post2', ?, ?)
SQL, [$tenant->id, $authorId]))->toThrow(QueryException::class);
})->with(
[TableRLSManager::class, TraitRLSManager::class],
[true, false]
);
})->with([TableRLSManager::class, TraitRLSManager::class])->with([true, false]);
5 changes: 1 addition & 4 deletions tests/RLS/TraitManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,7 @@

expect(fn () => DB::statement("INSERT INTO comments (text, post_id) VALUES ('third comment', {$post1->id})"))
->toThrow(QueryException::class);
})->with(
[true, false],
[true, false],
);
})->with([true, false])->with([true, false]);

test('trait rls manager generates queries correctly', function() {
/** @var TraitRLSManager $manager */
Expand Down

0 comments on commit 1f41a8a

Please sign in to comment.