Skip to content
Snippets Groups Projects
Commit 5f78b595 authored by Adrian Cid Almaguer's avatar Adrian Cid Almaguer
Browse files

Issue #3128070 by adriancid: Check the config variable delete_newer in the Functional test

parent 26c5ff0f
Branches
Tags
No related merge requests found
......@@ -82,6 +82,7 @@ class NodeRevisionDeleteAdminSettingsTest extends BrowserTestBase {
// Form values to send.
$form_values = [
[
'delete_newer' => TRUE,
'node_revision_delete_cron' => 20,
'node_revision_delete_time' => 86400,
'node_revision_delete_minimum_age_to_delete_time_max_number' => 10,
......@@ -92,6 +93,7 @@ class NodeRevisionDeleteAdminSettingsTest extends BrowserTestBase {
'dry_run' => FALSE,
],
[
'delete_newer' => FALSE,
'node_revision_delete_cron' => 15,
'node_revision_delete_time' => 7776000,
'node_revision_delete_minimum_age_to_delete_time_max_number' => 20,
......@@ -112,6 +114,7 @@ class NodeRevisionDeleteAdminSettingsTest extends BrowserTestBase {
$config_file = $config_factory->get($this->configurationFileName);
// Verifying the config values.
$this->assertEquals($edit['delete_newer'], $config_file->get('delete_newer'));
$this->assertEquals($edit['node_revision_delete_cron'], $config_file->get('node_revision_delete_cron'));
$this->assertEquals($edit['node_revision_delete_time'], $config_file->get('node_revision_delete_time'));
$this->assertEquals($edit['node_revision_delete_minimum_age_to_delete_time_max_number'], $config_file->get('node_revision_delete_minimum_age_to_delete_time')['max_number']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment