Files
yii2-usuario/tests/_app/config/db.php
Tõnis Ormisson 422a17d8dc Use GitHub actions (#447)
* init github actions

* init github actions: test run on feature branch

* github actions: remove alternative mysql port

* github actions: expose mysql port

* github actions: install & try migrations

* github actions: adjust test db configuration for github actions

* github actions: run tests

* github actions: fix codeception db connection add actions badge

* github actions: try only php8

* github actions: add php 7.4

* github actions: dont fail fast

* github actions: save test-outputs as artifacts

* github actions: save test-outputs only on fail

* github actions: save runtime folder in artifacts on failed build

* github actions: save runtime folder in artifacts on failed build

* github actions: save error  logs for tests

* github actions: log error if unable to send email on new user creation

* github actions: change log conf

* github actions: add tests yii2:transaction=false to pass tests on php < 8

* github actions: add tests yii2:transaction=false to pass tests on php < 8

* github actions: remove travis

* github actions: add changelog
2022-02-17 13:45:34 +01:00

16 lines
319 B
PHP

<?php
$db = [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=yii2-usuario-test',
'username' => 'root',
'password' => 'password',
'charset' => 'utf8',
];
if (file_exists(__DIR__.'/db.local.php')) {
$db = array_merge($db, require(__DIR__.'/db.local.php'));
}
return $db;