private function RevisionAllPreventNodeOverrideTests::has_disabled_revisions in Revision All 7.2
Checks the current virtual browser page to ensure that the "Create new revision" checkbox is disabled.
3 calls to RevisionAllPreventNodeOverrideTests::has_disabled_revisions()
- RevisionAllPreventNodeOverrideTests::testPreventsOverrideBaseType in tests/
revision_all.test - Tests built-in content type "Create new revision" behavior.
- RevisionAllPreventNodeOverrideTests::testPreventsOverrideCustomType in tests/
revision_all.test - Tests custom content type "Create new revision" behavior.
- RevisionAllPreventNodeOverrideTests::testPreventsOverrideModuleType in tests/
revision_all.test - Tests module-defined content type "Create new revision" behavior.
File
- tests/
revision_all.test, line 388 - Tests for Revision All module.
Class
- RevisionAllPreventNodeOverrideTests
- Tests the Prevent Content Type Revisioning Overrides feature.
Code
private function has_disabled_revisions() {
$caller = parent::getCallingMethodName();
$disabled_field = $this
->xpath('//input[@id=:id and @disabled="disabled"]', array(
':id' => 'edit-revision',
));
$this
->assertTrue($disabled_field, $caller . ': "Create new revision" disabled');
$this
->assertText(t('Prevent Node Revisioning Overrides'), "Description of disabled checkbox present");
}