mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix missing variables in ConfigHelperTest
This commit is contained in:
parent
334b1cc277
commit
3467250e17
1 changed files with 3 additions and 1 deletions
|
|
@ -6,7 +6,9 @@ class ConfigHelperTest extends \Codeception\TestCase\Test
|
||||||
{
|
{
|
||||||
public function testConsolidate()
|
public function testConsolidate()
|
||||||
{
|
{
|
||||||
$member_config = getModel('module')->getModuleConfig('member');
|
$member_config = getModel('module')->getModuleConfig('member') ?: new stdClass;
|
||||||
|
$member_config->enable_join = 'Y';
|
||||||
|
$member_config->identifier = 'email_address';
|
||||||
$consolidated = ConfigHelper::consolidate(array(
|
$consolidated = ConfigHelper::consolidate(array(
|
||||||
'dbtype' => array('common:db.type', 'member:nosuchconfig'),
|
'dbtype' => array('common:db.type', 'member:nosuchconfig'),
|
||||||
'member' => array('common:no.such.config', 'member:enable_join', 'tobool'),
|
'member' => array('common:no.such.config', 'member:enable_join', 'tobool'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue