public function RevisionAllTypeRevisioningTests::testRevisionAllUncheckWhenNotGlobal in Revision All 7.2
Tests that the Revision All checkbox gets unchecked if an individual content type is manually removed from revisioning.
File
- tests/
revision_all.test, line 308 - Tests for Revision All module.
Class
- RevisionAllTypeRevisioningTests
- Tests the "Revision All" feature and revisioning of individual content types.
Code
public function testRevisionAllUncheckWhenNotGlobal() {
$this
->drupalGet('admin/structure/types/manage/article');
$settings = array();
$settings['node_options[revision]'] = FALSE;
$this
->drupalPost('admin/structure/types/manage/article', $settings, 'Save content type');
$this
->drupalGet('admin/config/content/revision-all');
$this
->assertNoFieldChecked('edit-revision-all-revision-all-types', '"Revision All" unchecked');
$this
->assertNoFieldChecked('edit-revision-all-revision-types-types-article', '"Article unchecked');
$this
->assertFieldChecked('edit-revision-all-revision-types-types-basic-page', '"Basic page" checked');
}