/** * Test if the default department is returned */ public function testDefaultDepartment() { $this->_defaultDepartmentConfigChanged = true; Courses_Config::getInstance()->set(Courses_Config::DEFAULT_DEPARTMENT, $this->_department->name); $result = $this->_json->getRegistryData(); $this->assertEquals($this->_department->id, $result['defaultType']['value']); }