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