1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 23:14:03 +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

@ -16,8 +16,6 @@ jobs:
strategy: strategy:
matrix: matrix:
include: include:
- laravel: "^10.0"
php: "8.2"
- laravel: "^11.0" - laravel: "^11.0"
php: "8.3" php: "8.3"

View file

@ -161,8 +161,7 @@ test('the tenants migrate command uses the schema dump correctly', function (boo
// Were created in the tenant database // Were created in the tenant database
expect(Schema::hasTable('example'))->toBeTrue(); expect(Schema::hasTable('example'))->toBeTrue();
expect(Schema::hasTable('users'))->toBeTrue(); expect(Schema::hasTable('users'))->toBeTrue();
})->with([true, false]) })->with([true, false]);
->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release');
test('dump command works', function () { test('dump command works', function () {
$tenant = Tenant::create(); $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($tenantOnePrefix . 'key'))->toBe('tenantone-value');
expect(cache($tenantTwoPrefix . 'key'))->toBe('tenanttwo-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 () { test('cache is persisted when reidentification is used', function () {
$tenant1 = Tenant::create(); $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(cache()->store('redis2')->getPrefix()) // Non-default store gets prefixed correctly too
->toBe(app('cache')->getPrefix()) ->toBe(app('cache')->getPrefix())
->toBe(app('cache.store')->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 () { test('cache is prefixed correctly when using a repository injected in a singleton', function () {
$this->app->singleton(CacheService::class); $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 ->toBe(cache()->store('redis2')->getPrefix()); // Non-default store
tenancy()->end(); 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() { test('cache store prefix generation can be customized', function() {
// Use custom prefix generator // Use custom prefix generator
@ -302,7 +302,7 @@ test('cache store prefix generation can be customized', function() {
->toBe(app('cache.store')->getPrefix()); ->toBe(app('cache.store')->getPrefix());
tenancy()->end(); 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() { test('stores get prefixed using the default way if no prefix generator is specified', function() {
$originalPrefix = config('cache.prefix'); $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()); ->toBe(cache()->store('redis2')->getPrefix());
tenancy()->end(); tenancy()->end();
})->skip(fn () => str(app()->version())->startsWith('10.'), 'todo@l10 drop laravel 10 support before release'); });