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

Fix typo, update variable name formatting

This commit is contained in:
lukinovec 2022-08-31 08:36:14 +02:00
parent 59af5f47c7
commit 044e6441ea

View file

@ -271,7 +271,7 @@ test('files can get fetched using the storage url', function() {
expect(file_get_contents(public_path($parsedUrl)))->toBe($tenantKey); expect(file_get_contents(public_path($parsedUrl)))->toBe($tenantKey);
}); });
test('create and delete storage symlinks jobs works', function() { test('create and delete storage symlinks jobs work', function() {
Event::listen( Event::listen(
TenantCreated::class, TenantCreated::class,
JobPipeline::make([CreateStorageSymlinks::class])->send(function (TenantCreated $event) { JobPipeline::make([CreateStorageSymlinks::class])->send(function (TenantCreated $event) {
@ -300,14 +300,14 @@ test('create and delete storage symlinks jobs works', function() {
tenancy()->initialize($tenant); tenancy()->initialize($tenant);
$tenant_key = $tenant->getTenantKey(); $tenantKey = $tenant->getTenantKey();
$this->assertDirectoryExists(storage_path("app/public")); $this->assertDirectoryExists(storage_path("app/public"));
$this->assertEquals(storage_path("app/public/"), readlink(public_path("public-$tenant_key"))); $this->assertEquals(storage_path("app/public/"), readlink(public_path("public-$tenantKey")));
$tenant->delete(); $tenant->delete();
$this->assertDirectoryDoesNotExist(public_path("public-$tenant_key")); $this->assertDirectoryDoesNotExist(public_path("public-$tenantKey"));
}); });
function getDiskPrefix(string $disk): string function getDiskPrefix(string $disk): string