You are here

public function RevisionAllBasicTests::testSettingsSaving in Revision All 7.2

Tests that revision_all settings are properly saved in the database when the form is submitted.

File

tests/revision_all.test, line 123
Tests for Revision All module.

Class

RevisionAllBasicTests
Tests the basic Revision All settings.

Code

public function testSettingsSaving() {
  $settings = parent::getSettings(FALSE, TRUE, FALSE, TRUE);
  parent::saveSettings($settings);
  $this
    ->assertText('Revisioning Set', '"Revisioning Set" message');
  $settings = array();
  $settings['revision_all_types'] = FALSE;
  $settings['enable_future'] = TRUE;
  $settings['prevent_type_override'] = FALSE;
  $settings['prevent_node_override'] = TRUE;
  $db_settings = variable_get('revision_all', array());
  $this
    ->assertEqual($settings, $db_settings, 'DB settings correct');
}