not->toBeNull(); expect((int) $row->rls)->toBe(1); }); it('у tenants есть политика самоизоляции по id', function () { $pol = DB::selectOne( "select qual from pg_policies where schemaname = 'public' and tablename = 'tenants' and policyname = 'tenants_self_isolation'" ); expect($pol)->not->toBeNull(); expect($pol->qual)->toContain('current_setting'); expect($pol->qual)->toContain('id'); }); it('project_routing_snapshots.created_at имеет тип timestamptz', function () { $col = DB::selectOne( "select data_type from information_schema.columns where table_name = 'project_routing_snapshots' and column_name = 'created_at'" ); expect($col)->not->toBeNull(); expect($col->data_type)->toBe('timestamp with time zone'); });