mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 18:04:03 +00:00
Specify charset and collation config in test
This commit is contained in:
parent
66ae88a325
commit
03318752b6
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue