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