You are here

public function RevisionAllBasicTests::testSettingsAccessible in Revision All 7.2

Tests that the revision_all settings form is available and properly preconfigured.

File

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

Class

RevisionAllBasicTests
Tests the basic Revision All settings.

Code

public function testSettingsAccessible() {
  $this
    ->drupalGet('admin/config/content/revision-all');
  $this
    ->assertResponse('200', 'Settings accessible');
  $this
    ->assertTitle('Revision All | Drupal', 'Settings title is "Revision All"');
  $this
    ->assertFieldChecked('edit-revision-all-revision-all-types', '"Revision All" checked');
  $this
    ->assertFieldChecked('edit-revision-all-enable-future', '"Enable for all Future Content Types" checked');
  $this
    ->assertNoFieldChecked('edit-revision-all-prevent-type-override', '"Prevent Content Type Revisioning Overrides" unchecked');
  $this
    ->assertNoFieldChecked('edit-revision-all-prevent-node-override', '"Prevent Node Revisioning Overrides" unchecked');
}