private function RevisionAllTypeRevisioningTests::nodeRevisioningStatus in Revision All 7.2
Checks the current virtual browser page to ensure that the "Create new revision" checkbox has the expected checked/unchecked status.
Parameters
bool $checked If TRUE verify that the checkbox is checked, else: verify that it us unchecked.
6 calls to RevisionAllTypeRevisioningTests::nodeRevisioningStatus()
- RevisionAllTypeRevisioningTests::testRevisionAllBase in tests/
revision_all.test - Tests the built-in content type behavior when 'Revision All' is checked.
- RevisionAllTypeRevisioningTests::testRevisionAllCustomType in tests/
revision_all.test - Tests custom content type behavior when 'Revision All' is checked.
- RevisionAllTypeRevisioningTests::testRevisionAllModuleType in tests/
revision_all.test - Tests module-defined content type behavior when 'Revision All' is checked.
- RevisionAllTypeRevisioningTests::testRevisionSelectBaseType in tests/
revision_all.test - Tests the built-in content type behavior when only some content types are selected.
- RevisionAllTypeRevisioningTests::testRevisionSelectCustomType in tests/
revision_all.test - Tests custom content type behavior when only some content types are selected.
File
- tests/
revision_all.test, line 184 - Tests for Revision All module.
Class
- RevisionAllTypeRevisioningTests
- Tests the "Revision All" feature and revisioning of individual content types.
Code
private function nodeRevisioningStatus($checked = TRUE) {
$caller = parent::getCallingMethodName();
$type = $this
->getContentTypeBeingAdded();
if ($checked) {
$this
->assertFieldChecked('edit-revision', "{$caller}: {$type} revisioning set");
}
else {
$this
->assertNoFieldChecked('edit-revision', "{$caller}: {$type} - revisioning not set");
}
}