You are here

public function RevisionAllTypeRevisioningTests::testRevisionSelectBaseType in Revision All 7.2

Tests the built-in content type behavior when only some content types are selected.

File

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

Class

RevisionAllTypeRevisioningTests
Tests the "Revision All" feature and revisioning of individual content types.

Code

public function testRevisionSelectBaseType() {
  $settings = parent::getSettings(FALSE, TRUE, TRUE, TRUE);
  $settings['revision_all[revision_types][types][Basic page]'] = FALSE;
  parent::saveSettings($settings);
  $this
    ->drupalGet('node/add/page');
  $this
    ->nodeRevisioningStatus(FALSE);
  $settings['revision_all[revision_types][types][Basic page]'] = TRUE;
  parent::saveSettings($settings);
  $this
    ->drupalGet('node/add/page');
  $this
    ->nodeRevisioningStatus(TRUE);
}