public function RevisionAllTypeRevisioningTests::testRevisionSelectModuleType in Revision All 7.2
Tests module-defined content type behavior when only some content types are selected.
File
- tests/
revision_all.test, line 285 - Tests for Revision All module.
Class
- RevisionAllTypeRevisioningTests
- Tests the "Revision All" feature and revisioning of individual content types.
Code
public function testRevisionSelectModuleType() {
$settings = parent::getSettings(FALSE, TRUE, TRUE, TRUE);
$settings['revision_all[revision_types][types][Revision All Test Page]'] = FALSE;
parent::saveSettings($settings);
$this
->drupalGet('node/add/revision-all-test');
$this
->nodeRevisioningStatus(FALSE);
$settings['revision_all[revision_types][types][Revision All Test Page]'] = TRUE;
parent::saveSettings($settings);
$this
->drupalGet('node/add/revision-all-test');
$this
->nodeRevisioningStatus(TRUE);
}