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

Specify charset and collation config in test

This commit is contained in:
lukinovec 2026-05-04 13:40:42 +02:00
parent 66ae88a325
commit 03318752b6

View file

@ -688,6 +688,8 @@ test('sqlite database manager respects the configured path while making the data
test('newly created tenant databases use the correct charset and collation with mysql', function () { test('newly created tenant databases use the correct charset and collation with mysql', function () {
config([ config([
'tenancy.bootstrappers' => [DatabaseTenancyBootstrapper::class], 'tenancy.bootstrappers' => [DatabaseTenancyBootstrapper::class],
'database.connections.mysql.charset' => 'utf8mb4',
'database.connections.mysql.collation' => 'utf8mb4_unicode_ci',
]); ]);
Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) { Event::listen(TenantCreated::class, JobPipeline::make([CreateDatabase::class])->send(function (TenantCreated $event) {