I noticed a strage behaviour in codeception: if I rely only on codeception.yml with:
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 1024M
modules:
config:
Db:
dsn: 'mysql:host=localhost;dbname=test'
user: 'test'
password: 'test'
dump: tests/_data/dump.sql
run:
php artisan migrate --package=cartalyst/sentry --env="testing" php artisan migrate --seed --env="testing"
I've got this error
[PDOException]
SQLSTATE[42000] [1044] Access denied for user ''@'localhost' to database 'f orge'
if I put a file database.php in app/config/testing with
return array(
'default' => 'mysql',
'connections' => array(
'mysql' => array(
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'lama-test',
'username' => 'lama-test',
'password' => 'lama-test',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
)
),
all it's ok.
I'm new at codeception so I'm wondering what's the matter and if I make something wrong.