Example #1
0
 public function testGet()
 {
     $configArr = ['some' => 'thing'];
     $config = new Config($configArr);
     $default = 'nope';
     $val1 = $config->get('some', $default);
     $val2 = $config->get('nothing', $default);
     $this->assertEquals('thing', $val1, 'Value not returned');
     $this->assertEquals($default, $val2, 'Default value not returned');
 }
Example #2
0
 /**
  * fetchDefaultUserRoleIds
  *
  * @return Result
  * @throws RcmUserException
  */
 public function fetchDefaultUserRoleIds()
 {
     return new Result($this->config->get('DefaultUserRoleIds', []));
 }