Update HostingSubscriptionBackupTest.php

This commit is contained in:
Bozhidar 2024-04-26 16:16:24 +03:00
parent 6aa7e7dacc
commit 3bed9aab56

View file

@ -156,7 +156,7 @@ class HostingSubscriptionBackupTest extends ActionTestCase
$this->assertNotEmpty($databaseUser->id);
$unitTestDbConnection = 'db-unit-' . $database->id;
Config::set('database.connections.' . $unitTestDbConnection, [
config(['database.connections.' . $unitTestDbConnection => [
'driver' => 'mysql',
'host' => 'localhost',
'port' => '3306',
@ -168,7 +168,7 @@ class HostingSubscriptionBackupTest extends ActionTestCase
'prefix' => '',
'strict' => false,
'engine' => null,
]);
]]);
Schema::connection($unitTestDbConnection)
->create('random_table', function ($table) {