function test_getComponentGroupSettingsArray() { $oManager = new OX_Plugin_ComponentGroupManager(); $GLOBALS['_MAX']['CONF']['test'] = array('foo' => 1, 'bar' => 0); $aComponentGroups = $oManager->getComponentGroupSettingsArray('test'); $this->assertIsA($aComponentGroups, 'array'); $this->assertEqual(count($aComponentGroups), 2); $this->assertEqual($aComponentGroups['foo'], 1); $this->assertEqual($aComponentGroups['bar'], 0); unset($GLOBALS['_MAX']['CONF']['test']); $aComponentGroups = $oManager->getComponentGroupSettingsArray('test'); $this->assertIsA($aComponentGroups, 'array'); $this->assertEqual(count($aComponentGroups), 0); }