diff --git a/.travis.yml b/.travis.yml index f9aaa49..152c363 100644 --- a/.travis.yml +++ b/.travis.yml @@ -35,9 +35,9 @@ before_script: # initialize database - mysql -e 'CREATE DATABASE `yii2-usuario-test`;'; - - mysql -e "CREATE USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password;"; - - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'user'@'localhost' WITH GRANT OPTION;"; - - mysql -u user -p "yii2-usuario-test" < tests/data/schema.sql + - mysql -e "CREATE USER 'travis'@'localhost' IDENTIFIED WITH mysql_native_password;"; + - mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'travis'@'localhost' WITH GRANT OPTION;"; + - mysql -u travis -p "yii2-usuario-test" < tests/data/schema.sql script: - composer validate --no-check-lock diff --git a/codeception.dist.yml b/codeception.dist.yml index 02c1a86..a04cc98 100644 --- a/codeception.dist.yml +++ b/codeception.dist.yml @@ -12,7 +12,7 @@ modules: config: Db: dsn: 'mysql:host=localhost;dbname=yii2-usuario-test' - user: 'user' + user: 'travis' password: '' dump: tests/_data/schema.sql Yii2: diff --git a/tests/_app/config/db.php b/tests/_app/config/db.php index cd87c31..d1f7a61 100644 --- a/tests/_app/config/db.php +++ b/tests/_app/config/db.php @@ -3,7 +3,7 @@ $db = [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=yii2-usuario-test', - 'username' => 'user', + 'username' => 'travis', 'password' => '', 'charset' => 'utf8', ];