mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Update config tester
This commit is contained in:
@@ -93,7 +93,7 @@ class ConfigurationTest extends \PHPUnit_Framework_TestCase
|
||||
$yaml = new Yaml();
|
||||
|
||||
$conf = new Configuration($yaml, $compiler, $config, $compiled, false);
|
||||
$this->assertEquals('127.0.0.1', $conf['main']['database']['host']);
|
||||
$this->assertEquals('sql-host', $conf['main']['database']['host']);
|
||||
|
||||
$conf['extra-key'] = 'extra-value';
|
||||
$this->assertEquals('extra-value', $conf['extra-key']);
|
||||
|
@@ -2,11 +2,11 @@ main:
|
||||
servername: 'http://local.phrasea/'
|
||||
maintenance: false
|
||||
database:
|
||||
host: 127.0.0.1
|
||||
host: 'sql-host'
|
||||
port: '3306'
|
||||
user: root
|
||||
password: ''
|
||||
dbname: ab_test
|
||||
user: 'sql-user'
|
||||
password: 'sql-password'
|
||||
dbname: ab_phraseanet
|
||||
driver: pdo_mysql
|
||||
charset: UTF8
|
||||
database-test:
|
||||
|
@@ -2,11 +2,11 @@ main:
|
||||
servername: 'http://local.phrasea/'
|
||||
maintenance: false
|
||||
database:
|
||||
host: 127.0.0.1
|
||||
host: 'sql-host'
|
||||
port: '3306'
|
||||
user: root
|
||||
password: ''
|
||||
dbname: ab_test
|
||||
user: 'sql-user'
|
||||
password: 'sql-password'
|
||||
dbname: ab_phraseanet
|
||||
driver: pdo_mysql
|
||||
charset: UTF8
|
||||
database-test:
|
||||
|
Reference in New Issue
Block a user