Issue #2611064 by joshi.rohit100, Chi, dawehner: CronForm::submitForm - makes wrong redirect
parent
ffb427aae7
commit
6f17442770
|
@ -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)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue