Skip to content

Commit

Permalink
Enforce utf8 database encoding for travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Oct 8, 2018
1 parent c1fc102 commit 0873ac1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions tests/AimeosTestAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ protected function getEnvironmentSetUp($app)
{
putenv( 'APP_DEBUG=1' );

$app['config']->set('app.key', 'SomeRandomStringWith32Characters');
$app['config']->set('app.cipher', 'AES-256-CBC');

$app['config']->set('database.default', 'mysql');
$app['config']->set('database.connections.mysql', [
'driver' => 'mysql',
Expand All @@ -17,8 +20,20 @@ protected function getEnvironmentSetUp($app)
'charset' => 'utf8',
]);

$app['config']->set('app.key', 'SomeRandomStringWith32Characters');
$app['config']->set('app.cipher', 'AES-256-CBC');
$app['config']->set('shop.resource.db', [
'adapter' => 'mysql',
'host' => env('DB_HOST', 'localhost'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'stmt' => ["SET SESSION sort_buffer_size=2097144; SET SESSION sql_mode='ANSI'; SET NAMES 'utf8_bin'"],
'opt-persistent' => 0,
'limit' => 3,
'defaultTableOptions' => [
'collate' => 'utf8_unicode_ci',
'charset' => 'utf8',
],
]);

$app['config']->set('shop.authorize', false);
$app['config']->set('shop.disableSites', false);
Expand Down

0 comments on commit 0873ac1

Please sign in to comment.