def test_save_logfiles
@logging_params.load(self)
assert_equal(1, @params_call)
assert_equal(0, @logging_params.logfiles.length)
@logging_params.add_logfile
assert_equal(1, @logging_params.logfiles.length)
assert_equal(nil, @logging_params.logfiles[0].path)
assert_equal('notice', @logging_params.logfiles[0].logging_level)
@logging_params.logfiles[0].path = 'debug.log'
assert_equal('debug.log', @logging_params.logfiles[0].path)
@logging_params.logfiles[0].logging_level = 'debug'
assert_equal('debug', @logging_params.logfiles[0].logging_level)
@logging_params.save(self)
assert_equal(1, @set_params_call)
assert((@set_params_names.include? 'logfiles'))
assert_equal(1, @store['logfiles'].length)
assert_equal([ { 'path' => 'debug.log',
'logging_level' => 'debug'
}
], @store['logfiles'])
end