Issue #1958702 by rootatwc: Fixed Aggregator variables to config update is never executed.

8.0.x
catch 2013-04-03 12:21:35 +01:00
parent ee96cf6b96
commit 6a27d1b0eb
3 changed files with 39 additions and 1 deletions

View File

@ -295,7 +295,7 @@ function aggregator_schema() {
*
* @ingroup config_upgrade
*/
function aggregrator_update_8000() {
function aggregator_update_8000() {
update_variables_to_config('aggregator.settings', array(
'aggregator_fetcher' => 'fetcher',
'aggregator_parser' => 'parser',

View File

@ -159,6 +159,16 @@ class SystemUpgradePathTest extends UpgradePathTestBase {
'child_type' => 'book',
);
$expected_config['aggregator.settings'] = array(
'fetcher' => 'test_fetcher',
'parser' => 'test_parser',
'processors' => array('test_processor'),
'items.allowed_html' => '<a>',
'items.teaser_length' => 6000,
'items.expire' => 10,
'source.list_max' => 5,
);
foreach ($expected_config as $file => $values) {
$config = config($file);
$this->verbose(print_r($config->get(), TRUE));

View File

@ -135,6 +135,34 @@ db_insert('variable')->fields(array(
'name' => 'fast_404_html',
'value' => 's:168:"<!DOCTYPE html><html><head><title>Page Not Found</title></head><body><h1>Page Not Found</h1><p>The requested URL "@path" was not found on this server.</p></body></html>";',
))
->values(array(
'name' => 'aggregator_fetcher',
'value' => 's:12:"test_fetcher";',
))
->values(array(
'name' => 'aggregator_parser',
'value' => 's:11:"test_parser";',
))
->values(array(
'name' => 'aggregator_processors',
'value' => 'a:1:{i:0;s:14:"test_processor";}',
))
->values(array(
'name' => 'aggregator_allowed_html_tags',
'value' => 's:3:"<a>";',
))
->values(array(
'name' => 'aggregator_teaser_length',
'value' => 'i:6000;',
))
->values(array(
'name' => 'aggregator_clear',
'value' => 'i:10;',
))
->values(array(
'name' => 'aggregator_summary_items',
'value' => 'i:5;',
))
->execute();
db_update('variable')