1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 11:44:04 +00:00

update test name

This commit is contained in:
Abrar Ahmad 2023-01-11 13:57:01 +05:00 committed by GitHub
parent 14720c28a2
commit a0acf1a20d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -440,7 +440,7 @@ test('you can define the connection template array in template_tenant_connection
expect($manager->database()->getConfig('host'))->toBe('mysql2'); expect($manager->database()->getConfig('host'))->toBe('mysql2');
}); });
test('template tenant connection value can be partial database config', function () { test('you can define the partial connection template array in template_tenant_connection and it will be completed by merging into the central connection', function () {
Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) { Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) {
return $event->tenant; return $event->tenant;
})->toListener()); })->toListener());