mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14:04 +00:00
Update specific attributes of pending tenants while they're being pulled (#59)
* Add option to update attributes of pending tenants while pulling them * Fix failing toEqualCanonicalizing tests * Fix code style (php-cs-fixer) * fix code errors * lock phpcsfixer to 3.62.0 due to a bug in 3.63.1 --------- Co-authored-by: PHP CS Fixer <phpcsfixer@example.com> Co-authored-by: Samuel Štancl <samuel@archte.ch>
This commit is contained in:
parent
87e02f207f
commit
6b74589d76
5 changed files with 11 additions and 12 deletions
|
|
@ -535,9 +535,7 @@ test('table rls manager generates relationship trees with tables related to the
|
|||
})->with([true, false]);
|
||||
|
||||
test('table rls manager generates queries correctly', function() {
|
||||
$sessionVariableName = config('tenancy.rls.session_variable_name');
|
||||
|
||||
expect(app(TableRLSManager::class)->generateQueries())->toEqualCanonicalizing([
|
||||
expect(array_values(app(TableRLSManager::class)->generateQueries()))->toEqualCanonicalizing([
|
||||
<<<SQL
|
||||
CREATE POLICY authors_rls_policy ON authors USING (
|
||||
tenant_id::text = current_setting('my.current_tenant')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue