Issue #2611064 by joshi.rohit100, Chi, dawehner: CronForm::submitForm - makes wrong redirect

8.1.x
Alex Pott 2016-01-19 10:48:40 +00:00
parent ffb427aae7
commit 6f17442770
2 changed files with 4 additions and 1 deletions

View File

@ -133,7 +133,6 @@ class CronForm extends FormBase {
drupal_set_message(t('Cron run failed.'), 'error');
}
return new RedirectResponse($this->url('system.cron_settings', array(), array('absolute' => TRUE)));
}
}

View File

@ -109,6 +109,10 @@ class CronRunTest extends WebTestBase {
// fail randomly. Look for the word 'years', because without a timestamp,
// the time will start at 1 January 1970.
$this->assertNoText('years');
$this->drupalPostForm(NULL, [], t('Save configuration'));
$this->assertText(t('The configuration options have been saved.'));
$this->assertUrl('admin/config/system/cron');
}
/**