From 013dd5f51a51437a9e6179f8c543bdbcde212142 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Wed, 1 Feb 2023 06:59:21 +0100 Subject: [PATCH] improve test names --- tests/TenantDatabaseManagerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/TenantDatabaseManagerTest.php b/tests/TenantDatabaseManagerTest.php index a6562eb3..c06eed5c 100644 --- a/tests/TenantDatabaseManagerTest.php +++ b/tests/TenantDatabaseManagerTest.php @@ -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());