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

improve test names

This commit is contained in:
Samuel Štancl 2023-02-01 06:59:21 +01:00 committed by GitHub
parent a0acf1a20d
commit 013dd5f51a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,7 +390,7 @@ test('path used by sqlite manager can be customized', function () {
expect(file_exists($customPath . '/' . $name))->toBeTrue();
});
test('you can define the connection template array in template_tenant_connection or use a name of an existing connection template', function () {
test('the tenant connection template can be specified either by name or as a connection array', function () {
Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) {
return $event->tenant;
})->toListener());
@ -440,7 +440,7 @@ test('you can define the connection template array in template_tenant_connection
expect($manager->database()->getConfig('host'))->toBe('mysql2');
});
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 () {
test('partial tenant connection templates get merged into the central connection template', function () {
Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) {
return $event->tenant;
})->toListener());