diff --git a/.github/workflows/phpunits.yaml b/.github/workflows/phpunits.yaml index 13c30159a..adcf73a38 100644 --- a/.github/workflows/phpunits.yaml +++ b/.github/workflows/phpunits.yaml @@ -73,7 +73,7 @@ jobs: - 3306:3306 mariadb: - image: mariadb:10.5 + image: mariadb:10.10 # https://github.com/laravel/framework/pull/48455 env: MYSQL_ROOT_PASSWORD: wallet MYSQL_DATABASE: wallet diff --git a/tests/Infra/TestCase.php b/tests/Infra/TestCase.php index 0155f1d95..6ecc4ad17 100644 --- a/tests/Infra/TestCase.php +++ b/tests/Infra/TestCase.php @@ -48,9 +48,6 @@ final protected function getPackageProviders($app): array $app['config']->set('wallet.transfer.model', Transfer::class); $app['config']->set('wallet.wallet.model', Wallet::class); - //infra - $app['config']->set('database.mysql.collation', 'utf8mb4_unicode_ci'); - return [WalletServiceProvider::class, TestServiceProvider::class]; } @@ -66,13 +63,8 @@ final protected function getEnvironmentSetUp($app): void $config->set('database.connections.testing.prefix', 'tests'); $config->set('database.connections.pgsql.prefix', 'tests'); $config->set('database.connections.mysql.prefix', 'tests'); - - /** @var array $mysql */ - $mysql = $config->get('database.connections.mysql'); - $config->set('database.connections.mariadb', array_merge($mysql, [ - 'collation' => 'utf8mb4_unicode_ci', - 'port' => 3307, - ])); + $config->set('database.connections.mariadb.prefix', 'tests'); + $config->set('database.connections.mariadb.port', 3307); // new table name's $config->set('wallet.transaction.table', 'transaction');