2016-08-20 23:33:47 +02:00
|
|
|
describe '/system/get-settings' do
|
|
|
|
it 'should return correct values' do
|
|
|
|
result = request('/system/get-settings')
|
2019-12-17 19:25:45 +01:00
|
|
|
|
2016-08-20 23:33:47 +02:00
|
|
|
(result['status']).should.equal('success')
|
|
|
|
(result['data']['language']).should.equal('en')
|
2017-03-15 20:17:06 +01:00
|
|
|
(result['data']['departments'][0]['name']).should.equal('Help and Support')
|
2020-05-13 00:22:51 +02:00
|
|
|
(result['data']['mandatory-login']).should.equal('1')
|
2020-06-15 21:27:45 +02:00
|
|
|
(result['data']['default-department-id']).should.equal('1')
|
|
|
|
(result['data']['default-is-locked']).should.equal('0')
|
2016-12-21 05:09:35 +01:00
|
|
|
(result['data']['allowedLanguages'][0]).should.equal('en')
|
|
|
|
(result['data']['allowedLanguages'][1]).should.equal('es')
|
|
|
|
(result['data']['allowedLanguages'][2]).should.equal('de')
|
|
|
|
(result['data']['allowedLanguages'][3]).should.equal('fr')
|
2017-01-10 21:07:49 +01:00
|
|
|
(result['data']['allowedLanguages'][4]).should.equal('pt')
|
2016-12-21 05:09:35 +01:00
|
|
|
(result['data']['allowedLanguages'][5]).should.equal('jp')
|
|
|
|
(result['data']['allowedLanguages'][6]).should.equal('ru')
|
|
|
|
(result['data']['allowedLanguages'][7]).should.equal('cn')
|
|
|
|
(result['data']['allowedLanguages'][8]).should.equal('in')
|
|
|
|
(result['data']['allowedLanguages'][9]).should.equal('tr')
|
|
|
|
(result['data']['supportedLanguages'][0]).should.equal('en')
|
2016-08-20 23:33:47 +02:00
|
|
|
end
|
2018-11-23 23:44:10 +01:00
|
|
|
end
|