1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 20:54:04 +00:00

Remove Laravel 10 from CI matrix

This commit is contained in:
Samuel Štancl 2024-03-12 16:16:52 +01:00
parent d6b5a6ab6c
commit ce8e74e978
3 changed files with 6 additions and 9 deletions

View file

@ -161,8 +161,7 @@ test('the tenants migrate command uses the schema dump correctly', function (boo
// Were created in the tenant database
expect(Schema::hasTable('example'))->toBeTrue();
expect(Schema::hasTable('users'))->toBeTrue();
})->with([true, false])
->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
})->with([true, false]);
test('dump command works', function () {
$tenant = Tenant::create();

View file

@ -74,7 +74,7 @@ test('correct cache prefix is used in all contexts', function () {
expect(cache($tenantOnePrefix . 'key'))->toBe('tenantone-value');
expect(cache($tenantTwoPrefix . 'key'))->toBe('tenanttwo-value');
})->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
});
test('cache is persisted when reidentification is used', function () {
$tenant1 = Tenant::create();
@ -148,7 +148,7 @@ test('cache base prefix is customizable', function () {
->toBe(cache()->store('redis2')->getPrefix()) // Non-default store gets prefixed correctly too
->toBe(app('cache')->getPrefix())
->toBe(app('cache.store')->getPrefix());
})->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
});
test('cache is prefixed correctly when using a repository injected in a singleton', function () {
$this->app->singleton(CacheService::class);
@ -280,7 +280,7 @@ test('non default stores get prefixed too when specified in tenantCacheStores',
->toBe(cache()->store('redis2')->getPrefix()); // Non-default store
tenancy()->end();
})->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
});
test('cache store prefix generation can be customized', function() {
// Use custom prefix generator
@ -302,7 +302,7 @@ test('cache store prefix generation can be customized', function() {
->toBe(app('cache.store')->getPrefix());
tenancy()->end();
})->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
});
test('stores get prefixed using the default way if no prefix generator is specified', function() {
$originalPrefix = config('cache.prefix');
@ -321,4 +321,4 @@ test('stores get prefixed using the default way if no prefix generator is specif
->toBe(cache()->store('redis2')->getPrefix());
tenancy()->end();
})->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
});